Q. What will be output for the following code?
Code:
#include<stdio.h>
int main()
{
int x = 10;
char y = 'a';
x = x + y;
float z = x + 1.0;
printf(""x = %d, z = %f"", x, z);
return 0;
}
β
Correct Answer: (B)
x = 107, z = 108.000000