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


Please Help Members By Posting Answers For Below Questions

what is the function of pragma directive in c?

633


How we can insert comments in a c program?

636


What is queue in c?

585


Explain the use of function toupper() with and example code?

661


Is c easier than java?

579






Can a function argument have default value?

678


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

663


Do you know the difference between malloc() and calloc() function?

619


how we can make 3d venturing graphics on outer interface

4019


What is difference between structure and union?

606


How many types of arrays are there in c?

604


Explain what is a static function?

636


What is a static variable in c?

673


Explain argument and its types.

608


What is the use of bitwise operator?

694