What will be the output of the program ?
  #include<stdio.h>
int

Home | Discussion Forum

What will be the output of the program ?

  #include<stdio.h>
int main()
{
int x=30, *y, *z;
y=&x; /* Assume address of x is 500 and integer is 4 byte size */
z=y;
*y++=*z++;
x++;
printf("x=%d, y=%d, z=%d\n", x, y, z);
return 0;
}

View More Related Question

2) Can you combine the following two statements into one?

   char *p; 
p = (char*) malloc(100);

3) A pointer is

4) Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)?

5) What will be the output of the program If the integer is 4bytes long?

 #include<stdio.h>
int main()
{
int ***r, **q, *p, i=8;
p = &i;
q = &p;
r = &q;
printf("%d, %d, %d\n", *p, **q, ***r);
return 0;
}

UP Gk Online Test

taiyari24hour.com

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