main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}
Answer / abhishek marshetty
Explanation: printf( ) prints address/garbage of i, scanf() dont have & sign, so scans address for i +1, -1 dont have any effect on code.
| Is This Answer Correct ? | 11 Yes | 0 No |
Why are all header files not declared in every c program?
why wipro wase
What are the preprocessor categories?
Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }
What is the difference between functions abs() and fabs()?
why you will give me a job in TCS.
How pointer is different from array?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?
What are the characteristics of arrays in c?
how to multiply two number taking input as a string (considering sum and carry )
What is getch c?
What does the format %10.2 mean when included in a printf statement?