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...

main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

what is the output?

Answer Posted / fazlur rahaman naik

x = 57 and y = 94.

because the value of x = y++ + x++(35 + 20) is 55 and then
it incremented here x++ i.e.56 and the value of y = 36 and
then the value of y = ++y + ++x(57 + 37) = 94.

Is This Answer Correct ?    38 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c standard library?

1145


Can we declare a function inside a function in c?

987


What is meant by recursion?

995


What is the difference between int main and void main in c?

1092


What is #line used for?

987


What is main () in c language?

1077


Why doesn't C support function overloading?

2605


main() { printf("hello"); fork(); }

1146


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2577


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2293


What is array of structure in c?

1096


What is the best way of making my program efficient?

961


What is a program flowchart and explain how does it help in writing a program?

1224


What is a program flowchart and how does it help in writing a program?

1082


What is the maximum length of an identifier?

1130