New course! Every coder should learn Generative AI!
Try a free lesson0
What is the return type of malloc function as it allocate space it should return ?
4 Answers
+ 2
there is no malloc in Java.
it has "new" keyword, which is used to allocate memory to objects and assign reference to the object variable.
read more on that here
http://stackoverflow.com/questions/4404872/is-there-something-like-malloc-free-in-java
+ 1
malloc returns a pointer to the region in memory where storage was allocated
0
Neeraj have reason! that's it!
0
Lol @Reyes