HarshJain
Newbie
- Joined
- Jul 11, 2022
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Location
- India
- Activity points
- 35
Hello Everyone, I am confused with the code can somebody tell me What is the output of the following program?
Can someone help me with this?
Thanks in Advance!!
Code:
#include <stdio.h>
int main()
{
int a = 1;
int b = 1;
int c = a || --b;
int d = a-- && --b;
printf("a = %d, b = %d, c = %d, d = %d", a, b, c, d);
return 0;
}
Can someone help me with this?
Thanks in Advance!!