write a statement to display all the elements array M(in reverse order?

int M[8]={20,21,22,23,24,25,26,27};

Answers were Sorted based on User's Feedback



write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,..

Answer / mithun

for(i=7;i>=0;i--)
{
printf("%d",M[i]);
}

Is This Answer Correct ?    7 Yes 1 No

write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,..

Answer / asd

for(i=8;i<=0;i--)
{
printf("%d",M[i]);
}

Is This Answer Correct ?    9 Yes 4 No

write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,..

Answer / reshma khan

for(i=8;i>0;i--)
{
printf("%d",m[i]);
}

Is This Answer Correct ?    2 Yes 3 No

write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,..

Answer / susarya

For(i=8;i>=0:i--);
{
printf("%d",M[i]);
scanf("%d,M[i++]")
}

Is This Answer Correct ?    0 Yes 1 No

write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,..

Answer / mithun

for(i=0;i<8;i++)
{
printf(M[i]);
}

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More C Interview Questions

write a program to find the sum of the array elements in c language?

24 Answers   ICT, Infosys, Wipro,


main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


difference between c and c++

3 Answers  


what is the height of tree if leaf node is at level 3. please explain

0 Answers  


int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?

6 Answers   Verifone,






What are the differences between new and malloc in C?

0 Answers   Amazon,


Explain bitwise shift operators?

0 Answers  


How would you print out the data in a binary tree, level by level, starting at the top?

6 Answers   Amazon, Microsoft,


Is it possible to have a function as a parameter in another function?

0 Answers  


What is c language in simple words?

0 Answers  


What are header files in c?

0 Answers  


Tell me the use of bit field in c language?

0 Answers  


Categories