What's wrong with "char *p; *p = malloc(10);"?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the use of typedef in structure in c?
What is the proper way of these job Tell me about there full work
What is echo in c programming?
Why is C language being considered a middle level language?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What are the parts of c program?
code for replace tabs with equivalent number of blanks
Why header file is used in c?
What the advantages of using Unions?
What is a loop?
How can I find out how much free space is available on disk?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion