What is (void*)0?

Home | Discussion Forum
Taiyari24Hour

What is (void*)0?



View More Related Question

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

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) How many bytes are occupied by near, far and huge pointers (DOS)?

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

UP Gk Online Test

taiyari24hour.com

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