Multiple choice technology programming languages

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 language, macro variable assignments are treated as text strings unless evaluated by an evaluation function like %EVAL. Thus, %let x=a + c; simply assigns the literal text string '2 + 3' to x.