Hoàng Phương Trà
New member
#include <stdio.h>
#include <conio.h>
int main()
{
int x = 3;
if (x == 2); x = 0;
if (x == 3) x++;
else x += 2;
printf("x = %d", x);
getch();
}</blockquote>
What is output?
A. x = 2
B. x = 6
C. x = 0
#include <conio.h>
int main()
{
int x = 3;
if (x == 2); x = 0;
if (x == 3) x++;
else x += 2;
printf("x = %d", x);
getch();
}</blockquote>
What is output?
A. x = 2
B. x = 6
C. x = 0