#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
What is an auto keyword in c?
What does the file stdio.h contain?
How is null defined in c?
What the advantages of using Unions?
What is the difference between NULL and NUL?
code for find determinent of amatrix
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Is c easy to learn?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are the preprocessor categories?
How can I invoke another program or command and trap its output?
What is the difference between scanf and fscanf?
Are the variables argc and argv are always local to main?
Can you mix old-style and new-style function syntax?
Can you pass an entire structure to functions?