Multiple choice technology mainframe

Which of the following Instructions is used to allocate Memory in Assembler

  1. DC

  2. DS

  3. No Such Instruction Exists

  4. 1 and 2

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

DC (Define Constant) is used to allocate memory and initialize it with a constant value in assembler. DS (Define Storage) only reserves memory space without initialization. Therefore DC is the instruction that both allocates and initializes memory.