#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
What is the significance of c program algorithms?
When should you not use a type cast?
What is pointer to pointer in c language?
What is a stream?
What is array in c with example?
Can a pointer point to null?
What is a buffer in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain how can a program be made to print the name of a source file where an error occurs?
What is the difference between local variable and global variable in c?
What are the benefits of organizational structure?
Is it cc or c in a letter?
Is there any demerits of using pointer?
What are qualifiers and modifiers c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?