Question
WRITE C++ CCODE FOR THE FOLLOWING QUESTION USING CHAR AND C STRING You are required to create a character array named mywords of size 10.
WRITE C++ CCODE FOR THE FOLLOWING QUESTION USING CHAR AND C STRING
You are required to create a character array named mywords of size 10. Initialize it with random characters taken from user. Write C++ code that will reverse the order of the characters in this array. (You can use only 1 extra variable for this program, No extra array or more than 1 variable is allowed to be used).
Write a function that takes in two arrays of type char and length n, m and shuffles them in a way that their alternate characters are swapped. If one array is shorter than the other, then the longer array will continue with its own elements. For example Array 1 = f g h u k m v Array 2 = u h b d a s k Output Array 1 = u g b u a m k Array 2 = f h h d k s
Write a function to find out how many digits are in a string. Your function should take one parameter: the string to search through. Your function should return a single integer: the number of digits contained in that string. Your function must have this prototype: int countDigits(string); For example, if the string was: "Password123!" Your function should return 3, as the string contains 3 digits: 1, 2, and 3.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started