Answer Posted / sourisengupta
malloc returns a pointer to the allocated space if required
memory is available otherwise it will return a null pointer.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is c method?
Explain bitwise shift operators?
What are the 5 data types?
When is a null pointer used?
What is function prototype?
Where in memory are my variables stored?
Explain how can I remove the trailing spaces from a string?
What do you mean by invalid pointer arithmetic?
Explain how can I manipulate strings of multibyte characters?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
How can I access an I o board directly?
What is indirection in c?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Explain how can you avoid including a header more than once?
How to delete a node from linked list w/o using collectons?