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
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
List some of the dynamic data structures in C?
What does the error message "DGROUP exceeds 64K" mean?
Explain what is the difference between the expression '++a' and 'a++'?
Explain the difference between call by value and call by reference in c language?
What do you mean by a sequential access file?
What is use of null pointer in c?
What is a char in c?
What are the advantages of external class?
Define Spanning-Tree Protocol (STP)
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
When c language was developed?
Are pointers really faster than arrays?
Explain what are header files and explain what are its uses in c programming?