Multiple choice technology web technology

What is the value of x in the following code? %let a=2; %let c=3; %let x=&a + &c;

  1. 5

  2. Error in the code

  3. 2 + 3

  4. 2 + 3 ;

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

In SAS macro code, the %LET statement performs text substitution, not arithmetic evaluation. %let x=&a + &c assigns the literal text string '2 + 3' to x, not the numeric result 5. The macro processor doesn't evaluate arithmetic unless functions like %EVAL are used.