#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
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
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
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......
What is the advantage of c?
What do you mean by Recursion Function?
What are pointers in C? Give an example where to illustrate their significance.
How can I swap two values without using a temporary?
How do I get an accurate error status return from system on ms-dos?
Are pointers integers in c?
What is the use of linkage in c language?
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
Lists the benefits of c programming language?
Without Computer networks, Computers will be half the use. Comment.
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is a void pointer in c?