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 i=3, *j, k;
j = &i;
printf("%d\n", i**j*i+*j);
return 0;
}

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

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

 #include <stdio.h> int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}

int *f()
{
int *j = (int*)malloc(sizeof(int));
*j = 10;
return j;
}

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

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

UP Gk Online Test

taiyari24hour.com

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