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 / arun sebastin

The answer is %h %h %h

Because to print integer in c we have to use %d

but here they use %h which is wrong and the printf

statement print it without any error

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is calloc better than malloc?

1021


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1245


Can include files be nested? How many levels deep can include files be nested?

1171


How do you define a function?

1029


What is c programming structure?

1203


Dont ansi function prototypes render lint obsolete?

1132


Explain how can I open a file so that other programs can update it at the same time?

1119


What's a good way to check for "close enough" floating-point equality?

1165


What is a pointer value and address in c?

1134


What are the characteristics of arrays in c?

1054


What is array in C

1164


What are the scope of static variables?

1194


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1939


Explain how can a program be made to print the name of a source file where an error occurs?

1197


How can you pass an array to a function by value?

1125