What is the output of this C code?
#include <stdio.h>

Home | Discussion Forum
Taiyari24Hour

What is the output of this C code?

#include <stdio.h>
int main()
{
int x = 2, y = 1;
x *= x + y;
printf("%d\n", x);
return 0;
}



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = -3;
int k = i % 2;
printf("%d\n", k);
}

3) What is the value of x in this C code?

#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}

4) What is the output of this C code?

#include <stdio.h>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf("%d", c);
}

5) Consider the following statements:

 int a=2, b=3, c=4;
a=(b++) +c;
b=a+(++c);
What are the values of a, b and c, respectively?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.