Editing Difference Between C And C++
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
In C, malloc() , calloc() and free() functions are used for Memory allocation and freeing respectively . | In C++, new and delete operators are used for memory allocation and freeing . | In C, malloc() , calloc() and free() functions are used for Memory allocation and freeing respectively . | In C++, new and delete operators are used for memory allocation and freeing . | ||
main() function can be called from other functions . | main() function cannot be called from inside other functions. | main() function can be called from other functions . | main() function cannot be called from inside other functions. | ||
− | + | ||
+ | |||
+ | |||
Line 18: | Line 20: | ||
[[Category:Engineering|Difference Between C And C++]] | [[Category:Engineering|Difference Between C And C++]] | ||
− |