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 |
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Place the #include statement must be written in the program?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Explain indirection?
What is difference between structure and union in c programming?
different between overloading and overriding
Explain #pragma in C.
program to find the magic square
What are macros in C?
#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer