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
What is structure in c language?
Can i use “int” data type to store the value 32768? Why?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
c language interview questions & answer
What is a header file?
What are the types of assignment statements?
Explain how do you declare an array that will hold more than 64kb of data?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is #define?
Describe dynamic data structure in c programming language?
what are the different storage classes in c?
what is the significance of static storage class specifier?
What is clrscr in c?
write a program to find the given number is prime or not
how to capitalise first letter of each word in a given string?