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
What is the real life example of polymorphism?
program for insertion ,deletion,sorting in double link list
Which is not an object oriented programming language?
How does polymorphism work?
Which language is pure oop?
What is for loop and its syntax?
What is abstract class in oop?
Why is polymorphism used?
What is constructor overloading in oop?
Why do we use polymorphism?
What is abstraction and encapsulation?
any one please tell me the purpose of operator overloading
What does and I oop mean?
to find out the minimum of two integer number of two different classes using friend function
What is meant by multiple inheritance?