void main()
{
int i=5;
printf("%d",i+++++i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
Compiler Error
Explanation:
The expression i+++++i is parsed as i ++ ++ + i which is an
illegal combination of operators.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / ashi rathore
Ans is 11, as i+++++i can be written as i++ + ++i.
i++ =5
++i = 6
then 5 + 6 = 11
| Is This Answer Correct ? | 0 Yes | 1 No |
void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā%dā,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā%dā,*cptr); }
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Find the largest number in a binary tree
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
what is variable length argument list?