Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why clrscr is used in c?

978


Explain what is page thrashing?

1068


What should malloc() do?

1131


Can the curly brackets { } be used to enclose a single line of code?

1144


Why static variable is used in c?

1003


Why C language is a procedural language?

997


What is a node in c?

948


what is different between auto and local static? why should we use local static?

1098


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

1422


Write a program to know whether the input number is an armstrong number.

1090


What is the right type to use for boolean values in c? Is there a standard type?

982


What is c token?

1040


What is c system32 taskhostw exe?

996


What is uint8 in c?

1084


What are the 4 types of unions?

1012