0
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 0;
if (x = 5)
printf("A");
else
printf("B");
printf("%d", x);
return 0;
}- AA5
- BB0
- CA0
- DB5
Correct answer: A
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 0;
if (x = 5)
printf("A");
else
printf("B");
printf("%d", x);
return 0;
}