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


Please Help Members By Posting Answers For Below Questions

Is main an identifier in c?

837


What is c value paradox explain?

789


Write a code to generate a series where the next element is the sum of last k terms.

971


Differentiate fundamental data types and derived data types in C.

813


What are the application of c?

836


Explain what are compound statements?

807


How can I dynamically allocate arrays?

776


In a switch statement, what will happen if a break statement is omitted?

815


What is data structure in c programming?

795


What is a lookup table in c?

819


Explain what’s a signal? Explain what do I use signals for?

786


Why isnt there a numbered, multi-level break statement to break out

804


Explain built-in function?

828


What is a method in c?

812


What is the use of extern in c?

838