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 |
Can we compile a program without main() function?
Is a house a shell structure?
What is array of structure in c?
what is ans for this scanf(%%d",c);
What are the various types of control structures in programming?
How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance
implement OR gate without using any bitwise operator.
write a program to remove duplicate from an ordered char array? in c
How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
Can we use visual studio for c?
int i=~0; uint j=(uint)i; j++; printf(“%d”,j);