What is the output of the following code?#includestdio.hvoid main (){int a=0,b=1,c;if(a&&(b=5))c=1;elsec=2;printf("%d%d%d", a,b,c);}
class output { public static void main(String args[]) { double a, b,c; a = 3.0/0; b = 0/4.0; c=0/0.0; System.out.println(a); System.out.println(b); System.out.println(c); } }
Predict the output of the following code int main(){int a=5, b=10;printf("a=%d b=%d",a,b);a=a+b;b=a-b;a=a-b;printf("a=%d b=%d",a,b);return 0;}