What is the Difference between "C structure" and "C++
structure"?

Answers were Sorted based on User's Feedback



What is the Difference between "C structure" and "C++ structure"?..

Answer / asif iqbal

1.C is a procedural oriented lang. whereas C++ is an object oriented lang.
2.C employs bottom-up aproach whereas C++ employs top-down approach.
3.In C main preference is given to functions whereas in C++ main preference is given to objects.
4.In C no inheritence,polymorphism whereas in C++ it exists.
5.In C data member and member functions are separated whereas in C++ they are within a Class.

Is This Answer Correct ?    1 Yes 8 No

What is the Difference between "C structure" and "C++ structure"?..

Answer / guest

C++ DOES NOT HAVE INHERITANCE IT DOSE NOT HAVE POINTERS N
HEADER FILES

Is This Answer Correct ?    7 Yes 33 No

Post New Answer

More C++ General Interview Questions

Why ctype h is used in c++?

0 Answers  


What is a virtual destructor?

2 Answers  


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


What is iomanip c++?

0 Answers  


What do manipulators do?

0 Answers  






Is it possible for a member function to use delete this?

0 Answers  


Explain Memory Allocation in C/C++ ?

0 Answers   Infosys,


How does a C++ structure differ from a C++ class?

0 Answers   NIIT,


Define a nested class.

0 Answers  


what is pulse code modulation?

2 Answers   Wipro,


How to implement is-a and has-a class relationships?

0 Answers  


What is the difference between a pointer and a link in c ++?

0 Answers  


Categories