what isthe difference between c structure and c++ class

Answer Posted / a.sivasakthi

c structure are only define the data and data types
C++ class are define the data and solve the function the
both process are solved to the c++ class

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you inherit a private class?

841


Which language is not a true object oriented programming language?

868


why reinterpret cast is considered dangerous?

2108


What are benefits of oop?

879


What is encapsulation and abstraction? How are they implemented in C++?

847


write a programe to calculate the simple intrest and compund intrest using by function overlading

1897


What is encapsulation in simple terms?

768


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1855


What is encapsulation selenium?

755


What is polymorphism and why is it important?

772


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2321


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2208


What is object and example?

873


What does I oop mean?

835


What is abstraction and encapsulation?

775