Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged short-circuit-rule
1
votes
2
answers
1
C (output of code)
int main() { int i=-1, j=-1,k=0,l=2,m; m= i++ && j++ && k++ || l++ ; printf("%d %d %d %d %d", i,j,k,l,m); return 0; }
int main() { int i=-1, j=-1,k=0,l=2,m; m= i++ && j++ && k++ || l++ ; printf("%d %d %d %d %d", i,j,k,l,m); return 0; }
Ashwani Kumar 2
797
views
Ashwani Kumar 2
asked
Oct 16, 2017
Programming in C
programming-in-c
short-circuit-rule
+
–
7
votes
2
answers
2
GATE Overflow | Programming | Test 1 | Question: 11
What will be the outout of the following code? #include <stdio.h> int main() { int a = 1, b = 2; int c = a++ || b++; printf("%d %d %d", a, b, c); } 1 2 1 2 3 1 2 2 1 2 2 0
What will be the outout of the following code?#include <stdio.h int main() { int a = 1, b = 2; int c = a++ || b++; printf("%d %d %d", a, b, c); }1 2 12 3 12 2 12 2 0
Arjun
924
views
Arjun
asked
Oct 18, 2016
Programming in C
go-programming-1
programming
programming-in-c
short-circuit-rule
+
–
4
votes
1
answer
3
What is the output?
#include<stdio.h> int main() { int a=1, b; b = ++a || ++a; printf("%d %d", a, b); } Undefined Value 3 1 2 1 2 2
#include<stdio.h int main() { int a=1, b; b = ++a || ++a; printf("%d %d", a, b); }Undefined Value3 12 12 2
Arjun
1.5k
views
Arjun
asked
Aug 8, 2016
Programming in C
programming-in-c
short-circuit-rule
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register