How will you allocate memory to double a pointer?



How will you allocate memory to double a pointer?..

Answer / pavan135

main()
{
char *pch; **ppch;

pch = malloc(100);
if(pch == NULL)
return -1;
ppch = &pch;

}

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

What are pointers?

0 Answers   Accenture, Tavant Technologies, Zensar,


ATM machine and railway reservation class/object diagram

0 Answers   Zycus Infotech,


What does static variable mean in c?

0 Answers  


Write a C function to search a number in the given list of numbers. donot use printf and scanf

6 Answers   Honeywell, TCS,


Are negative numbers true in c?

0 Answers  






What is the function of this pointer?

0 Answers   Agilent, ZS Associates,


write a program to display numbers from 1 to 10 and 10 to 1?

2 Answers  


Why do we use header files in c?

0 Answers  


What is a header file?

0 Answers  


can a union be self-referenced?

1 Answers  


Why is it that not all header files are declared in every C program?

0 Answers  


Program to display given 3 integers in ascending order

1 Answers   N Tech,


Categories