Multiple choice technology programming languages

main() { char s1[]=“Cisco”; char s2[]= “systems”; printf(“%s”,s1); }

  1. systems

  2. Cisco

  3. Null

  4. error

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

The code defines two string arrays s1 and s2. The printf statement prints s1 using %s format specifier, which displays the entire string contained in s1. Since s1 contains 'Cisco', it will print 'Cisco' to the output, not 'systems' or 'Null'.