what are the ways in which a constructors can be called?
No Answer is Posted For this Question
Be the First to Post Answer
What are callback functions in c++
sir plz send me a set of questions that been frequently held in written examination during campus selection.
What do you mean by binding of data and functions?
Why interface is used?
Can private class be inherited?
write string class as your own class in java without using any built-in function
What is polymorphism explain?
What is object in oop?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> 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
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
What is the difference between an object and a class?
2. Give the different notations for the class.\