main()
{
int i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}
Answer / susie
Answer :
1
Explanation:
before entering into the for loop the checking condition is
"evaluated". Here it evaluates to 0 (false) and comes out of
the loop, and i is incremented (note the semicolon after the
for loop).
Is This Answer Correct ? | 25 Yes | 9 No |
main() { clrscr(); } clrscr();
Write a complete program that consists of a function that can receive two numbers from a user (M and N) as a parameter. Then print all the numbers between the two numbers including the number itself. If the value of M is smaller than N, print the numbers in ascending flow. If the value of M is bigger than N, print the numbers in descending flow. may i know how the coding look like?
How to count a sum, when the numbers are read from stdin and stored into a structure?
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
program to Reverse a linked list
12 Answers Aricent, Microsoft, Ness Technologies,
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
Write a program to receive an integer and find its octal equivalent?
main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
Write a routine that prints out a 2-D array in spiral order
main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }