In which header file is the NULL macro defined?

Home | Discussion Forum
Taiyari24Hour

In which header file is the NULL macro defined?



View More Related Question

1) How many bytes are occupied by near, far and huge pointers (DOS)?

2) What will be the output of the program ?

 #include<stdio.h>
int main()
{
static char *s[] = {"black", "white", "pink", "violet"};
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s", **p+1);
return 0;
}

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

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

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.