#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
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Write a program to implement queue.
What is the need of structure in c?
#include
What is wild pointer in c?
What are pointers really good for, anyway?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
How do you use a 'Local Block'?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Which is better malloc or calloc?
Tell me the use of bit field in c language?
Which is more efficient, a switch statement or an if else chain?
FILE PROGRAMMING
What is new line escape sequence?
How is null defined in c?