Question: What gets printed? #include int main() { } char text [4]; text [0] = 's'; text [1] = 'u'; text [2] = 'n'; text

What gets printed? #include int main() { } char text [4]; text

What gets printed? #include int main() { } char text [4]; text [0] = 's'; text [1] = 'u'; text [2] = 'n'; text [3] = '\0'; printf("%s", text);

Step by Step Solution

3.37 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include stdio h int main char text4 declares a char array of size 4 characte... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!