1.

Suggest most suitable derived data types in C++ for storing the following data items or statements 1. Age of 50 students in a class 2. Address of a memory variable 3. A set of instructions to find out the factorial of a number 4. An alternate name of a previously defined variable. 5. Price of 100 products in a consumer store 6. Name of a student

Answer»

1. Integer array of size 50 

2. Pointer variable 

3. Function 

4. Reference 

5. Float array of size 100 6. Character array



Discussion

No Comment Found

Related InterviewSolutions