Which C++ keyword can be used to define a user-defined data type?
- class
- newtype
- struct
- typedef
In C++, the 'typedef' keyword is used to define user-defined data types. It allows you to create aliases for existing data types, making your code more readable and maintainable.
Loading...
Related Quiz
- To read an entire string from a file, instead of a single character, use the _______ function.
- What role do preprocessor directives play in the structure of a C++ program?
- Which keyword is used to define a template in C++?
- What is the use of a catch block with an ellipsis (...)?
- A pointer passed by value to a function allows the function to change the _______ to which the pointer points.