engineering computer science MCQ #2142

What is the effect of `typedef int myInt;`?

engineering computer science MCQ #2142

  1. Question 1

    Q1. What is the effect of `typedef int myInt;`?

    • A) Defines a new type int
    • B) Creates an alias for int
    • C) Declares a variable myInt
    • D) Is a syntax error

    Answer: Creates an alias for int

    Explanation: Typedef creates an alias for an existing type. NET computer science MCQs often test this core concept.