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 / shajitha
Answer will be 42.
i++ =20
i+++=20+
i+++++i=20+22
i+++++i++=42
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Why clrscr is used in c?
Explain what is page thrashing?
What should malloc() do?
Can the curly brackets { } be used to enclose a single line of code?
Why static variable is used in c?
Why C language is a procedural language?
What is a node in c?
what is different between auto and local static? why should we use local static?
Explain how do you declare an array that will hold more than 64kb of data?
Write a program to know whether the input number is an armstrong number.
What is the right type to use for boolean values in c? Is there a standard type?
What is c token?
What is c system32 taskhostw exe?
What is uint8 in c?
What are the 4 types of unions?