#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);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
What is main () in c language?
What are operators in c?
What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Prove or disprove P!=NP.
What is type qualifiers?
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
How can I use a preprocessorif expression to ?
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.