Page 1 of 1

Task 1: Design a C program that: 1. initialize a character array with a string literal. 2. read a string into a characte

Posted: Sat May 14, 2022 3:17 pm
by answerhappygod
Task 1 Design A C Program That 1 Initialize A Character Array With A String Literal 2 Read A String Into A Characte 1
Task 1 Design A C Program That 1 Initialize A Character Array With A String Literal 2 Read A String Into A Characte 1 (20.79 KiB) Viewed 65 times
Task 1: Design a C program that: 1. initialize a character array with a string literal. 2. read a string into a character array, 3. print the previous character arrays as a string and 4. access individual characters of a string. TIP: use a for statement to loop through the string array and print the individual characters separated by spaces, using the %c conversion specifier.