Can you combine the following two statements into one?
   char *p; 
p

Home | Discussion Forum
Taiyari24Hour

Can you combine the following two statements into one?

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



View More Related Question

2) The operator used to get value at address stored in a pointer variable is

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

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

5) What will be the output of the program ?

 #include<stdio.h>
int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s\n", str);
return 0;
}

UP Gk Online Test

taiyari24hour.com

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