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 following C code?

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

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

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

4) What is (void*)0?

5) Comment on the following pointer declaration.

 int *ptr, p;

UP Gk Online Test

taiyari24hour.com

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