Chủ Nhật, 28 tháng 9, 2014

B3 Day 5 (Array)

1. Write a program which prints the letters in a char array in reverse order. For
example, if the array contains {'c', 's', 'c', '2', '6', '1'}the output (to the terminal)

should be "162csc"


2. Write a  program : declare a char array and the size of the array (of type char). This function counts the number of digit letters in the char array.


3. Write a program that counts the number of words in a string


4. Write a function that scans a character array for the character - and replaces it with _




Không có nhận xét nào:

Đăng nhận xét