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 |
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is wild pointer in c?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
0 Answers Amdocs, Apps Associates,
Why doesn't C support function overloading?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
What is the method to save data in stack data structure type?
How can I access a memory located at certain address?
What is the difference between GETS();AND SCANF();
what is self refrential structure
Explain high-order bytes.
How can you be sure that a program follows the ANSI C standard?