1.
What is the output of the following C code:
#include <stdio.h>

int main()
{
double a = -1.00000;
double b = 5.6;
float c;
c = a - b;
printf("%f", c);
}
2.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = -1, y = 0, z = 5;
int a = x && (y) || z++;
printf("%d", z);
}
3.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 2, y = 0, z = 2;
int a = x && y && z++;
printf("%d", z);
}
4.
What is the output of the following C code:
#include <stdio.h>
int main()
{
int x = 1, y = 0, z = 3,m;
return( x > y ? printf("%d", z) :printf("%d", z));
}
5.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 1, z = 3;
int y = x << 3;
printf(" %d
", y);
}
6.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 4, z = 3;
int y = (x << 3) + (~z);
printf(" %d
", y);
}
7.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 4, z = 3;
int y = (x << 3) + (~z) - (++x);
printf(" %d
", y);
}
8.
What is the output of the following C code:
#include <stdio.h>
void main()
{
int x = 0, y = 2, z = 3;
int a = x & y | z;
printf("%d", a);
}
9.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 0, y = 2, z = 3;
int a = ~(~x & y | z);
printf("%d", a);
}
10.
What is the output of the following C code:
#include <stdio.h>

void main()
{
int x = 0, y = 2, z = 3;
int a = ~(~x & (!y )| (~z));
printf("%d", a);
}