Search posts, tags, users, and pages
"C vs Java"
Syed Ataullah Bokhari
@ataullahsyed · India
Intermediate C, Web Development
Developer based on Jamshedpur. Currently learning new technologies. Rapt learner.
Markdown supported · ⌘↵ to post
Wellington Domiciano
Great comparison, but C doesn't have operator overloading, C++ does.
And about "automatic variables", if you call malloc() inside a function, you yet must call free().
malloc()
free()
In this line of reasoning, Java has "automatic variables" too, but only for primitive values.
Agreed, malloc() in C is used to dynamically allocate memory with the help of pointer variables.
Wellington Domiciano
Great comparison, but C doesn't have operator overloading, C++ does.
And about "automatic variables", if you call
malloc()inside a function, you yet must callfree().In this line of reasoning, Java has "automatic variables" too, but only for primitive values.