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

Write a program to print fibonacci series using recursion?

1135


How do I get an accurate error status return from system on ms-dos?

1179


what is reason of your company position's in india no. 1.

2412


How to compare array with pointer in c?

1170


What is data structure in c language?

1161


What is c language and why we use it?

1121


What is the purpose of sprintf?

1207


What is pointers in c?

1168


What is the size of structure pointer in c?

1122


What are the various types of control structures in programming?

1106


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1207


How is = symbol different from == symbol in c programming?

1105


What is difference between array and pointer in c?

1144


What is the mean of function?

1193


When would you use a pointer to a function?

1102