Comparative
study of C and C++:
|
C
|
C++
|
Designed by
|
Designed by Dennis Ritchie
|
Designed by B. Jarne Stroustrp
|
String type
|
Cannot use string type by declare it using as an
array of characters
|
Can use string type, using ‘string’ data type
|
Major Implementations
|
GCC, Borland C, MS VC
|
MSVC++
|
Program I/O
|
scanf for input or printf for output
|
cin for input or cout for output
|
Speed
|
C applications are faster to
compile and execute than C++ applications
|
C++ applications are generally
slower at runtime and are much slower to compile than C
|
Program Include
|
Uses #include<stdio.h>
|
Uses #include<iostream.h>
|
Language type
|
Procedural oriented language
|
Object Oriented language
|
Influenced
|
awk, C#, objective-C, Pearl, PHP, Java, C++,
JavaScript
|
Java, PHP, Pearl, JavaScript, Ada 95, D
|
Appeared in
|
1972
|
1985
|
OOP
|
Not built in
|
Yes, polymorphism and inheritance
|
Paradigm
|
Procedural system implementation
language
|
Multi paradigm language
|
Execution flow
|
Top to Bottom
|
Bottom to Top
|
nice site..........
ReplyDeletethanku..
ReplyDelete