Professional Documents
Culture Documents
Question 1: Marks:15
Write a C++ program that reads maximum of 20 characters long words in two different
character arrays named “a” and “b” of same sizes and create a bigger third array c made of
first char of array “a” and second character of array “b” and so on. Any left-over characters go
at the end of the array “c”. Also, if the character is a symbol or a digit then do not copy it in the
third array “c”.
Sample Run:
Input 5 numbers in array: 2 5 28 24 8
weights assigned: 5 5 0 4 0
The sum of weights: 14