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

#include<stdio.h>
void main()
{
int a=5,b=6,c;
int x=(a<b)+7;
int y=(x==7)*9;
int z=(c=x+y)*2;
printf("%h %h %h",x,y,z);
}
What is the output? Explain it.

Answer Posted / ashish tiwari

#include<stdio.h>
void main()
{
int a=5,b=6,c;
int x=(a<b)+7;
int y=(x==7)*9;
int z=(c=x+y)*2;
printf("%d %d %d",x,y,z);
getch();
}

this is a right programme which can give out put 8 0 16..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of c language?

1091


What is null pointer in c?

986


What is the significance of c program algorithms?

1145


How can you call a function, given its name as a string?

1153


Differentiate between functions getch() and getche().

1047


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3307


List a few unconditional control statement in c.

983


Explain how do you generate random numbers in c?

1082


What does the error 'Null Pointer Assignment' mean and what causes this error?

1215


number of times a digit is present in a number

2038


What is malloc return c?

1020


Here is a good puzzle: how do you write a program which produces its own source code as output?

1094


What is the use of sizeof () in c?

1046


How can I swap two values without using a temporary?

1101


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3314