#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 / mohit (firozabad, adc)
Here The Program will be print the Message %h%h%h only
because in the c language
the data type print the integer value by %d
character by %c
float by %f
pointer type by %u
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
formula to convert 2500mmh2o into m3/hr
Is that possible to store 32768 in an int data type variable?
Difference between Function to pointer and pointer to function
What is the value of c?
What are the different types of objects used in c?
What are the modifiers available in c programming language?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Array is an lvalue or not?
What is #include stdlib h?
What header files do I need in order to define the standard library functions I use?
Tell me with an example the self-referential structure?
What is assert and when would I use it?
Explain the use of function toupper() with and example code?
Hi can anyone tell what is a start up code?
c language interview questions & answer