What will be the output of this program on an implementation where int occupies

Home | Discussion Forum
Taiyari24Hour

What will be the output of this program on an implementation where int occupies 2 bytes?

#include 
void main()
{
int i = 3;
int j;
j = sizeof(++i + ++i);
printf("i=%d j=%d", i, j);
}



View More Related Question

2) What number will z in the sample code given below?

int z, x=5, y= -10, a=4, b=2;
z = x++ - --y*b/a;

3) Determine output:

void main()
{
int i=0, j=1, k=2, m;
m = i++ || j++ || k++;
printf("%d %d %d %d", m, i, j, k);
}

4) Determine output:

void main()
{
int c = - -2;
printf("c=%d", c);
}

5) What is the output of the following statements?

int b=15, c=5, d=8, e=8, a;
a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;
printf("%d", a);

UP Gk Online Test

taiyari24hour.com

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