difference between c/c++ programing language?
what is necessesity of c++ when existing c programing
language?







Answers were Sorted based on User's Feedback



difference between c/c++ programing language? what is necessesity of c++ when existing c programing..

Answer / kavibharathi

The main reason is lengthy C programs lose "Global View" and
become very difficult to visualize as a single concept.

C++ is an advance than C lang which has more features...

But comparing efficiency C is more efficient than C++

But C++ has more flexibility than C.

Also C++ is both combination of OOP and OBP concepts.

C++ has more features as

1.Object oriented
2.Information hiding
3.Standard Template Library
4.Inheritance
5.Constructors & Destructors
6.Exception Handling
7.Overloading

Is This Answer Correct ?    28 Yes 0 No

difference between c/c++ programing language? what is necessesity of c++ when existing c programing..

Answer / sathiyabama t

Structures of C++ can have functions in them but C
structures can only have variables
For I/O C++ has iostream.h and C has stdio.h.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C C++ Errors Interview Questions

char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


what is syntax error?

3 Answers  


void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?

24 Answers   HCL,


Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .

2 Answers  


How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?

1 Answers  


void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


What is the code for following o/p * * * * * * * * * * * * * * * *

1 Answers  


what is exceptions?

5 Answers   HCL, Wipro,


WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }

25 Answers   HCL,


What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).

0 Answers  


how to convert decimal to hexadecimal without using arrays just loops

2 Answers  


Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  


Categories