Write a function named “endingWithSlashSlash” that accepts the same parameters as command line arguments (argc and argv). It returns true if at least one of the arguments have a “//” at the end and false otherwise. This function also returns the number of arguments that have “//” at the end. For example, “//” will return true and 1 “one// two three// four” will return true and 2 “one” will return false and 0 “one two” will return false and 0 Please note that for question #5, you cannot refer or use string class, string methods such length() or size() or any string function such as strlen(), strcmp or strstr(). Please use only array notation, pointer to character, and/or pointer arithmetic and make use of the fact that this is a C-string.
Write a function named “endingWithSlashSlash” that accepts the same
parameters as command line arguments (argc and argv). It returns true if at least
one of the arguments have a “//” at the end and false otherwise.
This function also returns the number of arguments that have “//” at the end.
For example,
“//” will return true and 1
“one// two three// four” will return true and 2
“one” will return false and 0
“one two” will return false and 0
Please note that for question #5, you cannot refer or use string class, string
methods such length() or size() or any string function such as strlen(), strcmp
or strstr(). Please use only array notation, pointer to character, and/or pointer
arithmetic and make use of the fact that this is a C-string.

Answer:
I have done code and also I have attached code and code screenshot as well as output
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images









