#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 a good data structure to use for storing lines of text?

0 Answers  


Why we use int main and void main?

0 Answers  


What is non linear data structure in c?

0 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


declare afunction pointer to int printf(char *)?

1 Answers   HCL,


Compare and contrast compilers from interpreters.

0 Answers  


What is adt in c programming?

0 Answers  


What is signed and unsigned?

0 Answers  


What is a segmentation fault?

2 Answers  


Why c++ is called c++ and not c+?

9 Answers   EBS,


let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................

8 Answers  


we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

4 Answers   Google,


Categories