5. Write a program that includes the following: a) Define a character array and initialize it with the string HELLO. And, print this string on the screen. b) Define an integer array and initialize it...


C language


5. Write a program that includes the following:<br>a) Define a character array and initialize it with the string HELLO. And, print this string on the<br>screen.<br>b) Define an integer array and initialize it with the numbers: 2, 4, 6, 8, 10. And print these umbers<br>on the screen in a tabular format using for loop. Use field width value to align the numbers.<br>The output of the program should be as follows:<br>Character array is: HELLO<br>Integer Array Table<br>Index Value<br>2<br>4<br>3<br>8<br>4<br>10<br>

Extracted text: 5. Write a program that includes the following: a) Define a character array and initialize it with the string HELLO. And, print this string on the screen. b) Define an integer array and initialize it with the numbers: 2, 4, 6, 8, 10. And print these umbers on the screen in a tabular format using for loop. Use field width value to align the numbers. The output of the program should be as follows: Character array is: HELLO Integer Array Table Index Value 2 4 3 8 4 10

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here