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 |
#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?
What is conio h in c?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed
Why is c platform dependent?
What is the meaning of typedef struct in c?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
what is call by value and call by reference
What is a nested loop?
What are the advantages and disadvantages of pointers?
What are the basic data types associated with c?
Should I learn c before c++?