When is a memory allocated to a class?
Answers were Sorted based on User's Feedback
Answer / pushpankar mishra
i woould like to clear one thing that object and instance
are two sligthly differnt things
int a; // 'a 'is instance
a=20;//'a' is a object
eg:object+instance
|
int a=20// object + instance;;
Is This Answer Correct ? | 3 Yes | 4 No |
what are the uses of C++
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
what is the technical or oop name of object?
how many types of notations are in java
1 Answers National University of Modern Languages (NUML),
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
what does exactly the linker do?
What is the Advantage of Interface over the Inheritance in OOPS?
Explain the concepts involved in Object Oriented programming.
Why polymorphism is used in oops?
#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
what are the different types of qualifier in java?
how does a main() in C++ is different from main() in C?