what is the size of an empty class

Answer Posted / p.madhupriya

1 byte or 0

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1751


How to hide the base class functionality in Inheritance?

738


What is a class oop?

678


#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

2167


What causes polymorphism?

673






How do you define a class in oop?

730


what is different between oops and c++

2081


Can static class have constructor?

675


What is overriding in oop?

650


What is and I oop mean?

721


Can we define a class within the interface?

665


What are objects in oop?

702


What is the point of polymorphism?

674


Why do while loop is used?

660


What is polymorphism used for?

656