What will be the output of the following program
#include<stdio.h>
void main()
{
int i=20;
i-=i+++++i++;
printf("%d",i);
}
Answer Posted / jeevitha
i-=i++ + ++i++
i-=41++
i-=42
i=20-42
i=-22
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Write a program to swap two numbers without using a temporary variable?
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)
Explain the use of 'auto' keyword
How do you determine the length of a string value that was stored in a variable?
What is use of bit field?
How can I access an I o board directly?
What is the explanation for cyclic nature of data types in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Ow can I insert or delete a line (or record) in the middle of a file?
What are the usage of pointer in c?
What are the two forms of #include directive?
What is the difference between declaring a variable and defining a variable?
What is the difference between array and pointer in c?
What is the use of #include in c?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.