engineering computer science MCQ #2172

What does `typedef` do?

engineering computer science MCQ #2172

  1. Question 1

    Q1. What does `typedef` do?

    • A) Creates a new data type
    • B) Defines a macro
    • C) Declares a variable
    • D) Defines a function

    Answer: Creates a new data type

    Explanation: typedef creates an alias for an existing data type, enhancing code readability.