Computer Science, asked by yuvrajkurmi, 1 year ago

what is difference between program c and c++

Answers

Answered by bsi
1
the answer in pic that is
Attachments:

yuvrajkurmi: thanks for the help
bsi: answer my oues of maths and make me brainlist
Answered by Tanya5087
1
hey!!!
here's your answer!!
______❤_____❤______❤
The major difference between C and C++ is that C is a procedural programming language and does not support classes and objects, while C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language.............
some more differences are
C does not have namespaces (namespaces are used to avoid name collisions).
The I/O functions are entirely different in C and C++(ex: printf( ), scanf() etc. are part of the C language).

You cannot overload a function in C (i.e. you cannot have 2 functions with the same name in C).

Better dynamic memory management operators are available in C++.
C does not have reference variables (in C++ reference variables are used in functions).

In C constants are defined as macros (in C++ we can make use of ‘const’ to declare a constant).
Inline functions are not available in C....

yuvrajkurmi: thanks
Tanya5087: urs vlcm
yuvrajkurmi: of course
yuvrajkurmi: i will add you as brainlist
yuvrajkurmi: because you helped me
yuvrajkurmi: thanks again
Tanya5087: thanks
Tanya5087: and vlcm too
yuvrajkurmi: may you please follow me
Tanya5087: yes.. sure
Similar questions