Thursday, July 30, 2009

What is the unique stuff i can do with C programming language which C++ does not offer?

Identify some of the features of C programming language that C++ does not have as aprogramming language.

What is the unique stuff i can do with C programming language which C++ does not offer?
None.





Remember, the C++ programming languages was written in C.
Reply:I dont think there is some feature like that. Coz C++ is the improved version of C with tons of extra features.
Reply:C:


1. Hash parameters are defines, everything-global


2. No memory cleanup - customized allocation routines make addition of cleanup slightly complicated





C++:





1. Hash parameters specified as template parameters, nothing-global


2. Full cleanup in hash destructor





:)
Reply:some differences are:


1.C allows a void* pointer to be assigned to any pointer type without a cast, whereas C++ does not.


2.C++ implicitly treats any const global as file scope unless it is explicitly declared extern, unlike C in which extern is the default





These are basically technical differences with very little practical applications.


No comments:

Post a Comment