The operator used to get value at address stored in a pointer variable is

Home | Discussion Forum
Taiyari24Hour

The operator used to get value at address stored in a pointer variable is



View More Related Question

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

3) What will be the output of the following C code?

 #include <stdio.h>
void main()
{
int x = 0;
int *ptr = &5;
printf("%p\n", ptr);
}

4) How many bytes are occupied by near, far and huge pointers (DOS)?

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

UP Gk Online Test

taiyari24hour.com

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