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 / j mahesh

i=20
i++ + ++i =20 + 21=41
i-=41
i=i-41 =20-41
i= -21

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hungarian notation? Is it worthwhile?

1187


What is define c?

1024


What is %d called in c?

1194


How can I prevent another program from modifying part of a file that I am modifying?

1023


What are the 4 types of functions?

1017


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1098


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2361


Is a house a shell structure?

1125


Why doesnt this code work?

1022


List some of the static data structures in C?

1171


What is an operator?

1038


Explain b+ tree?

1024


What is a loop?

987


How can you find the day of the week given the date?

1161


What is bss in c?

1061