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
write a program to find 2^n+1 ?
What is class and object in oops?
What are the data types in oop?
What is the real time example of encapsulation?
#include
What is meant by multiple inheritance?
What are the benefits of polymorphism?
What does enum stand for?
What is class and object with example?
Which language is not a true object oriented programming language?
Whats is abstraction in oops?
When not to use object oriented programming?
Why is there no multiple inheritance?
What is oops?what is its use in software engineering?
What is abstraction with example?