Questions and Answers


  1. Which is used to solve the memory management problem in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    smart pointers


  1. What are the operators available in dynamic memory allocation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    new and delete operators are mainly used to allocate and deallocate during runtime.



  1. What is the scope of typedef defined data types?











  1. 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.


  1. How many types of user-defined data type are in c++?











  1. 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.



  1. What is the syntax of user-defined data types?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    typedef_existing data type_new name