#include<stdio.h>
void main()
{
int a,b,c;
a=b=c=1;
c=++a || ++b && ++c;
printf("%d\t%d\t%d",a,b,c);
}
Answer Posted / geetha
logical ooperation gives output only 0 or 1 that means
true or false.in this && have higher priority so first
excutes ++b&&++c (1&&1=1)true now 2||1=1.then a value is
incremanted in the ||operation indicates any one operation
excutes only .so a value is incremented and b & c values
are 1 displayed
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is scanf () in c?
What is call by value in c?
How can I sort more data than will fit in memory?
Explain the difference between ++u and u++?
the question is that what you have been doing all these periods (one year gap)
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is difference between && and & in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Explain how can a program be made to print the line number where an error occurs?
How can I generate floating-point random numbers?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What are the benefits of c language?
Explain indirection?
How do you determine a file’s attributes?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above