what's the return value of malloc()

Answer Posted / vrushali

If there is memory avaliablity in the system..
Then fisrt address of the memory allocated in returned.
Else NULL/Garbage value is returned.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

837


Explain the difference between strcpy() and memcpy() function?

771


Why do we need volatile in c?

934


Write a program with dynamically allocation of variable.

845


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1929


What is the difference between procedural and declarative language?

887


Explain what are binary trees?

824


Is null always defined as 0(zero)?

813


What is the difference between #include

and #include “header file”?

776


What is an array? What the different types of arrays in c?

862


How to establish connection with oracle database software from c language?

1928


How can a string be converted to a number?

747


How do you write a program which produces its own source code as output?

835


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2987


Write a program in c to replace any vowel in a string with z?

881