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() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error
main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
void main() { int i=5; printf("%d",i+++++i); }
union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); } a. 4, 4, 0 b. 0, 0, 0 c. 100, 4, 0 d. 40, 4, 0
could you please send the program code for multiplying sparse matrix in c????
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(“%d”,k); }
Print an integer using only putchar. Try doing it without using extra storage.
write a c-program to display the time using FOR loop
find simple interest & compund interest
main( ) { static int a[ ] = {0,1,2,3,4}; int *p[ ] = {a,a+1,a+2,a+3,a+4}; int **ptr = p; ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *++ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); ++*ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); }