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>
void main()
{
int y = 3;
int x = 5 % 2 * 3 / 2;
printf("Value of x is %d", x);
}



View More Related Question

2) What is the output of this C code?

#include <stdio.h>
void main()
{
char a = 'a';
int x = (a % 10)++;
printf("%d\n", x);
}

3) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = -5;
i = i / 3;
printf("%d ", i);
return 0;
}

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

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

5) 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;
}

UP Gk Online Test

taiyari24hour.com

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