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 a pointer variable in c language?
What will be the outcome of the following conditional statement if the value of variable s is 10?
How do you list a file’s date and time?
What are global variables?
What library is sizeof in c?
Why is c so important?
What is getch c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is the use of typedef in structure in c?
What are the standard predefined macros?
What are the different types of constants?
What are data types in c language?
How can I open files mentioned on the command line, and parse option flags?
What is memcpy() function?
List some basic data types in c?