what is the difference between class and structure in C++?

Answer Posted / renuka

IN CLASS WE USE BOTH VARIABLE AND FUNCTION OR IN STRUCTURE WE USE VARIABLE ONLY....

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class encapsulation?

820


What is overriding in oop?

787


What is the main purpose of inheritance law?

943


Why is object oriented programming so hard?

826


#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


Prepare me a program for the animation of train

2221


Can private class be inherited?

902


What is class in oop with example?

831


Give two or more real cenario of virtual function and vertual object

2077


Why do we use polymorphism?

763


Why do we need polymorphism in c#?

881


Who invented oop?

841


What is encapsulation process?

783


What are the types of abstraction?

771


What is variable example?

785