#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 / moolshankershukla

erreor generate because condition will not operate directly.
such as.

int x=(a<b)+7;
int y=(x==7)*9;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2511


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

697


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1398


What is the advantage of c?

607


What do you mean by Recursion Function?

625






What are pointers in C? Give an example where to illustrate their significance.

737


How can I swap two values without using a temporary?

606


How do I get an accurate error status return from system on ms-dos?

639


Are pointers integers in c?

602


What is the use of linkage in c language?

609


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

671


Lists the benefits of c programming language?

580


Without Computer networks, Computers will be half the use. Comment.

1861


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

637


What is a void pointer in c?

600