What would be the equivalent pointer expression for referring the array element

Home | Discussion Forum
Taiyari24Hour

What would be the equivalent pointer expression for referring the array element a[i][j][k][l]



View More Related Question

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

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

4) What would be the equivalent pointer expression for referring the array element a[i][j][k][l]

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

#include <stdio.h>
int main()
{
char *p = NULL;
char *q = 0;
if (p)
printf(" p ");
else
printf("nullp");
if (q)
printf("q\n");
else
printf(" nullq\n");
}

UP Gk Online Test

taiyari24hour.com

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