engineering computer science MCQ #2121

What is the purpose of `typedef`?

engineering computer science MCQ #2121

  1. Question 1

    Q1. What is the purpose of `typedef`?

    • A) To define a new data type
    • B) To declare a variable
    • C) To define a function
    • D) To allocate memory

    Answer: To define a new data type

    Explanation: Typedef is used to create an alias for an existing data type.