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

‎How to define structures? · ‎

0 Answers  


input any 4 digit number and find the difference of all the digits?

3 Answers   Google,


What is time null in c?

0 Answers  


difference between c and c++?

2 Answers  


What functions are used in dynamic memory allocation in c?

0 Answers  






.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

0 Answers  


what is the size of an integer variable?

4 Answers  


Why preprocessor should come before source code?

2 Answers  


Explain two-dimensional array.

0 Answers  


What is keyword in c?

0 Answers  


What are local variables c?

0 Answers  


String concatenation

2 Answers  


Categories