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
Why cant I open a file by its explicit path?
What is void main () in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Define macros.
how to capitalise first letter of each word in a given string?
Can the curly brackets { } be used to enclose a single line of code?
What is a pointer on a pointer in c programming language?
Write a program to print factorial of given number without using recursion?
What is advantage of pointer in c?
How would you obtain the current time and difference between two times?
Why header files are used?
Why malloc is faster than calloc?
Are negative numbers true in c?
I need a sort of an approximate strcmp routine?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3