How will you allocate memory to double a pointer?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

717


How can you call a function, given its name as a string?

715


what is ur strangth & weekness

1821


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

583


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1455






What is array within structure?

588


What is the process of writing the null pointer?

608


How can type-insensitive macros be created?

702


Write a progarm to find the length of string using switch case?

1613


Explain the use of 'auto' keyword

680


How can a process change an environment variable in its caller?

656


how could explain about job profile

1456


What does the c in ctime mean?

571


what do you mean by enumeration constant?

600


Explain about block scope in c?

663