#include
main()
{
int *p, *c, i;
i = 5;
p = (int*) (malloc(sizeof(i)));
printf("
%d",*p);
*p = 10;
printf("
%d %d",i,*p);
c = (int*) calloc(2);
printf("
%d
",*c);
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What are different types of pointers?

0 Answers  


Should I learn c before c++?

0 Answers  


What does s c mean in text?

0 Answers  


What is the scope of global variable in c?

0 Answers  


Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)

5 Answers   IBM, KJH,






pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

0 Answers   Huawei,


what is the difference between exit() and _exit() functions?

2 Answers  


extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }

2 Answers  


Place the #include statement must be written in the program?

0 Answers  


could u able to tell about suresoft technical session

1 Answers  


Is printf a keyword?

0 Answers  


Write a program for Overriding.

0 Answers  


Categories