#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 |
What is an expression?
what are brk, sbrk?
What is static and auto variables in c?
Write any data structure program (stack implementation)
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What do you mean by c?
what is the different bitween abap and abap-hr?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
application attempts to perform an operation?
Can we declare variables anywhere in c?
Write a program to exchange two variaables without temp
write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20