#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
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
How can I rethow can I return a sequence of random numbers which dont repeat at all?
How can I recover the file name given an open stream?
What is the purpose of ftell?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What is keyword with example?
what is reason of your company position's in india no. 1.
What's the right way to use errno?
what are non standard function in c
Why isn't it being handled properly?
Explain threaded binary trees?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Hai what is the different types of versions and their differences
What does typedef struct mean?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }