Answer Posted / clay
Here,
After char *p;
since pointer p is not initialized it is pointing at some
unknown location.
In the next step, the address of the memory allocated by
malloc() is stored at some garbage location pointed by p.
Here p is never initialized or never assigned any value.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is main () in c language?
Write the control statements in C language
Is c still used?
diff between exptected result and requirement?
How can you restore a redirected standard stream?
Differentiate call by value and call by reference?
what is the diffrenet bettwen HTTP and internet protocol
Write a program on swapping (100, 50)
Tell me when is a void pointer used?
main() { printf("hello"); fork(); }
Why C language is a procedural language?
Give differences between - new and malloc() , delete and free() ?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is the code in while loop that returns the output of given code?