Answer Posted / hrpynux@gmail.com
Structs are value type whereas Classes are reference type. Structs are stored on the stack whereas Classes are stored on the heap. Value types hold their value in memory where they are declared, but reference type holds a reference to an object memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between overloaded functions and overridden functions
Explain register storage specifier.
Is turbo c++ free?
What are guid? Why does com need guids?
Can comments be nested?
What is flag in computer?
Can c++ do everything c can?
What is data abstraction? How is it different from data encapsulation?
Can you Mention some Application of C/C++?
Why the usage of pointers in C++ is not recommended ?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is the use of :: operator in c++?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Can non graphic characters be used and processed in C++?