Quiz 2: Declaration and initialization or declaration with initialization
Mark those one-line programs that have declaration with initialization in a single go.
|0||my $a; $a = 42;||Here, the variable is first created and then a value is assigned to it.|
|1||my $a = 42;|
|1||my $a = 42; my $b = $a;||You can use the variable to initialize another variable.|
💪 Or jump directly to the exercises to this section.