Answer Posted / dally
#include<stdio.h>
#include<conio.h>
int main()
{
char array1[] = "STRING FOR TESTNG";
char array2[20],i=0;
int count;
count = strlen(array);
for(count;count>1;count--)
{
array2[i]= array1[count];
i++;
}
printf("%s\n",array2);
}
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
How do you determine whether to use a stream function or a low-level function?
Is there a way to compare two structure variables?
When should a type cast not be used?
List some of the static data structures in C?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Why do we use return in c?
Where in memory are my variables stored?
What is union and structure in c?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
What is the explanation for modular programming?
Explain built-in function?
write a c program to find the sum of five entered numbers using an array named number
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
How do you do dynamic memory allocation in C applications?