What should malloc() do?
Answer / Mohammad Sartaj
In C, 'malloc()' is used to dynamically allocate memory for a program. It returns a pointer to the allocated memory block or NULL if an error occurs.n`int *array = (int *)malloc(10 * sizeof(int)); /* allocates 10 integers */n"`
| Is This Answer Correct ? | 0 Yes | 0 No |
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is wild pointer in c?
Which command is more efficient? *(ptr+1) or ptr[1]
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Explain how can type-insensitive macros be created?
Is array name a pointer?
what is meant by c
difference between spiral and waterfall model
how to print this pyramid * * * * * * * * * * * * *
how to execute with out main in cprogram
How do you define a string?
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4