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 main()
{
int *ptr, a = 10;
ptr = &a;
*ptr += 1;
printf("%d,%d/n", *ptr, a);
}

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

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

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

5) In which header file is the NULL macro defined?

UP Gk Online Test

taiyari24hour.com

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