write a statement to display all the elements array M(in reverse order?
int M[8]={20,21,22,23,24,25,26,27};
Answer Posted / reshma khan
for(i=8;i>0;i--)
{
printf("%d",m[i]);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
When is a null pointer used?
Write a program that accept anumber in words
What is function prototype in c with example?
What is meant by inheritance?
What is NULL pointer?
Why c is faster than c++?
How are Structure passing and returning implemented by the complier?
When should a far pointer be used?
Explain how do you use a pointer to a function?
If fflush wont work, what can I use to flush input?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What are the 4 data types?
What is a structure member in c?
Which is better oop or procedural?
How do you determine the length of a string value that was stored in a variable?