how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / suresh reddy
The correct answer is
5
3
1
because
in for loop "i--" statement is there and again in printf
statement "i--" is there.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
how many key words availabel in c a) 28 b) 31 c) 32
what are the different storage classes in c?
What is #include called?
What is a good way to implement complex numbers in c?
What does the && operator do in a program code?
What is difference between arrays and pointers?
Do you know the use of 'auto' keyword?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What's the right way to use errno?
What are operators in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
How can a number be converted to a string?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How old is c programming language?