main()
{
unsigned int i=65000;
while(i++!=0);
printf("%d",i);
}
Answer / susie
Answer :
1
Explanation:
Note the semicolon after the while statement. When the value
of i becomes 0 it comes out of while loop. Due to
post-increment on i the value of i while printing is 1.
| Is This Answer Correct ? | 17 Yes | 5 No |
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
Write a single line c expression to delete a,b,c from aabbcc
what is the code of the output of print the 10 fibonacci number series
#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
4 Answers Google, HCL, Quick Heal, WTF,
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
Find the largest number in a binary tree
main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); }
how to concatenate the two strings
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
abcdedcba abc cba ab ba a a
Is the following code legal? typedef struct a { int x; aType *b; }aType