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


Please Help Members By Posting Answers For Below Questions

What is structure in c language?

619


Can i use “int” data type to store the value 32768? Why?

756


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

1492


c language interview questions & answer

1461


What is a header file?

635






What are the types of assignment statements?

630


Explain how do you declare an array that will hold more than 64kb of data?

904


How to find a missed value, if you want to store 100 values in a 99 sized array?

816


What is #define?

576


Describe dynamic data structure in c programming language?

604


what are the different storage classes in c?

662


what is the significance of static storage class specifier?

1661


What is clrscr in c?

674


write a program to find the given number is prime or not

3843


how to capitalise first letter of each word in a given string?

1434