what is the main difference between c and c++?
Answer Posted / md.mohibullah
1.In c++,I/O is performed using I/O operators instead of I/O
functions.
2.In c,when a function takes no parameters,its prototype has
the word void inside its function parameter list.But,in
c++,the void is optional.
for instance,char f1(void)[in c]
char f1()[in c++]
3.In c++,local variables can be declared anywhere but in
c,local variables can be declared only at the start of a block.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is oop useful?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Why do we need oop?
Why is object oriented programming so hard?
What are the two different types of polymorphism?
What are the components of marker interface?
Is react oop?
What is this pointer in oop?
What is encapsulation with real life example?
What does I oop mean?
What is the difference between a constructor and a destructor?
Write a c++ program to display pass and fail for three student using static member function
What is overloading in oop?
What does <> mean pseudocode?
Why we use classes in oop?