Multiple choice technology operating systems

What wil be the output of this command?$ for i in 1 2 3;do echo "\$i\c";done; Tell without trying on a server.

  1. 1c2c3c

  2. 123

  3. 1\c2\c3\c

  4. None of these

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

In shell scripting with echo, the backslash-c (\c) escape sequence suppresses the newline character that echo normally adds after each output. The loop iterates through 1, 2, 3 and echoes each number without a newline, producing '123' on a single line.