Questions and Answers
- Which is used to solve the memory management problem in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
smart pointers
- What are the operators available in dynamic memory allocation?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
new and delete operators are mainly used to allocate and deallocate during runtime.
- What is the scope of typedef defined data types?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
We are defining the user-defined data type to be availed only inside that program, if we want to use anywhere means we have to define those types in the header file.
- How many types of user-defined data type are in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
There are three types of user-defined data types. They are typedef, union, enumerator.
- What is the syntax of user-defined data types?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
typedef_existing data type_new name