main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}
Answer Posted / 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 |
Post New Answer View All Answers
Why do we use c for the speed of light?
How can I implement a delay, or time a users response, with sub-second resolution?
Explain what is the difference between functions abs() and fabs()?
Give me the code of in-order recursive and non-recursive.
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Sir i need notes for structure,functions,pointers in c language can you help me please
Where static variables are stored in memory in c?
What is function pointer c?
Are there any problems with performing mathematical operations on different variable types?
What is dangling pointer in c?
What is int main () in c?
What is a example of a variable?
write a program to copy the string using switch case?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What does s c mean in text?