#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 is the difference between printf and scanf )?

0 Answers  


what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.

3 Answers  


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

0 Answers   GrapeCity,


which do you prefer C or Pascal?

1 Answers  






Why is %d used in c?

0 Answers  


What is n in c?

0 Answers  


Why is struct padding needed?

0 Answers  


What is difference between static and global variable in c?

0 Answers  


What are the disadvantages of a shell structure?

0 Answers  


How arrays can be passed to a user defined function

0 Answers  


what are the files which are automatically opened when a c file is executed?

3 Answers  


Categories