engineering computer science MCQ #2175

What is the effect of `register` keyword?

engineering computer science MCQ #2175

  1. Question 1

    Q1. What is the effect of `register` keyword?

    • A) Stores variable in register
    • B) Makes variable global
    • C) Makes variable constant
    • D) Allocates memory on heap

    Answer: Stores variable in register

    Explanation: register hints the compiler to store the variable in a CPU register for faster access.