What will be the output of the program given below? #include int main() { int a = -10, b = 20; if(a > 0 & & b 0) b--; else b--; printf("%d\n",a + b); return 0; } Output:


What will be the output of the program given below?<br>#include <stdio.h><br>int main()<br>{<br>int a =<br>-10, b = 20;<br>if(a > 0 & & b <0)<br>a++;<br>else if(a < 0 && b < 0)<br>a--;<br>else if(a < 0 && b > 0)<br>b--;<br>else<br>b--;<br>printf(

Extracted text: What will be the output of the program given below? #include int main() { int a = -10, b = 20; if(a > 0 & & b <0) a++;="" else="" if(a="">< 0="" &&="" b="">< 0)="" a--;="" else="" if(a="">< 0="" &&="" b=""> 0) b--; else b--; printf("%d\n",a + b); return 0; } Output:

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here