Answer Posted / sunil s patil
Answer
c is not object oriented but c++ is object oriented
Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.
On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.
This is the main different between c and c++.
in c we use scanf function as standard input function,while
in c++ we use streame cin>> for input.like this for output
in c we use printf function,while in c++ we use cout<< as a
output function.
in c we use #include<stdio.h>as iclusion file,while in c++
we use #include<iostreame>as inclusion file.
IN c-programe the main function could not return a value
but in the c++ the main function shuld return a value
A function can be declared in C as int fun();. This means
that fun()is a function without any argument or any number
of arguments.But in C++, this means that the function with
no argument at all.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is variables in c?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain what is a 'locale'?
What is meant by int main ()?
What is the use of a ‘ ’ character?
What is a program flowchart and explain how does it help in writing a program?
What is pass by reference in c?
Where are local variables stored in c?
What are the advantages of c language?
Difference between constant pointer and pointer to a constant.
Describe dynamic data structure in c programming language?
What is optimization in c?
Explain can you assign a different address to an array tag?
What is scope and lifetime of a variable in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9