C and C++
C and C++
C C++
It is a mixture of both
It is aprOcedural
procedural and object
programminglanguage.
oriented programming
In simple words, it does
classes and languages. In simple
not support
words, it supports
objects
classes and objects.
It does not support any
00Ps concepts like
polymorphism, data It supports all concepts
abstraction, of data
encapsulation, classes,
and objects.
It does not support It supports Function and
Function and Operator Operator Overloading
Overloading respectively
It is a function-driven It is an object-driven
language language
12. What is the difference between a while
loop and a do-while loop?
Example of a do-while
loop:
Example of a while loop:
do {
while(condition)
statements to be
{statements to be executed;
executed:};
}while(condition or
expression);
13. Discuss the difference between prefix
and postfix?
prefix postfix
Struct Class
Arrays Lists
DataTypes in C/ C+t+
Void
Wide Character
DG
3. Define 'std'?
Syntax:
1/ reference variable
int& ref = GFG;
16. What are classes and objects in C++?
Advantages of C++: