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

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

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

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 is (void*)0?

4) If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?

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

 #include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%f\n", *(float*)p);
return 0;
}

UP Gk Online Test

taiyari24hour.com

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