🎴 Flashcard Mode
C++ Programming Fundamentals
Card1 / 14
Mastered0
Review0
QuestionClick to flip
main() { char s1[]=“Cisco”; char s2[]= “systems”; printf(“%s”,s1); }
AnswerClick to flip back
A
Cisco
💡 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'.