Answer Posted / shashidhar murthy
malloc returns a pointer to the allocated space if required
memory is found, else, a null pointer is returned and
'errno' is set to indicate the error.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a pointer and how it is initialized?
Explain the difference between the local variable and global variable in c?
What are different types of variables in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Describe the order of precedence with regards to operators in C.
write a program to find out prime number using sieve case?
What is difference between main and void main?
Is it possible to pass an entire structure to functions?
What is a 'null pointer assignment' error?
What is malloc() function?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Explain what is the difference between a free-standing and a hosted environment?
What is a volatile keyword in c?
How do you define structure?
difference between native and cross compilers