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 / asd

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

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should the volatile modifier be used?

677


What do header files do?

599


What is variable initialization and why is it important?

613


How do I copy files?

619


What functions are used for dynamic memory allocation in c language?

597






When do we get logical errors?

633


Compare array data type to pointer data type

596


writ a program to compare using strcmp VIVA and viva with its output.

1519


What are volatile variables in c?

514


How do I convert a string to all upper or lower case?

624


Explain what is the difference between far and near ?

648


Write a program to check palindrome number in c programming?

596


What is function in c with example?

625


What is void pointers in c?

582


What is the purpose of sprintf?

615