Question: Write a complete C++ function to return 1, 2, or 3 depending on whether the first character in a string is A, B, or C


Write a complete C++ function to return 1, 2, or 3 depending on whether the first character in a string is "A", "B", or "C" function has one parameter, which is a string, and it returns one value which is an integer. Call the above function and pass it the word Angel as an argument. Store the result in some integer variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
