Question: Needs to be written in C++ just simple corrections and code snipets A).Look at the following code. What value will be stored in s after
Needs to be written in C++ just simple corrections and code snipets
A).Look at the following code. What value will be stored in s after the code is executed?
char name[10];
int s;
strcpy(name, Jimmy);
s = strlen(name);
B).What header file must be included in the program using string functions such as strlen( ) and strcpy( )?
C). What header file must be included in a program using string objects?
D). Assume input is a char array holding a C-string. Write code that counts the number of elements in the array that contain an alphabetic character.
E). Correct the following code:
char str[ ] = Stop;
if (isupper(str) == STOP)
exit(0);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
