2 votes 2 votes What will be the output of the following C program? #include<stdio.h> int main() { int myinc = 0; if(++myinc && --myinc) { myinc--; } printf("%d", myinc); } Programming in C go2025-programming-1 numerical-answers operators + – gatecse asked Jul 26, 2020 • edited Jul 26, 2020 by Lakshman Bhaiya gatecse 182 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes ++myinc returns 1 and --myinc returns 0. So, if condition is FALSE and final value of myinc is 0. gatecse answered Jul 26, 2020 • selected Jul 28, 2020 by Lakshman Bhaiya gatecse comment Share Follow See all 0 reply Please log in or register to add a comment.