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 can I access memory located at a certain address?

3 Answers   Verizon,


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

0 Answers  


write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 Answers  


Write code for finding depth of tree

2 Answers   Adobe,


What does #pragma once mean?

0 Answers   Celstream,






Write a program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.

4 Answers  


Why C language is a procedural language?

0 Answers   Ericsson,


Is multithreading possible in c?

0 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


how many argument we can pas in in a function

25 Answers   CTS,


what is the basis for selection of arrays or pointers as data structure in a program

0 Answers   TCS,


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


Categories