In a program designed to find the longest string in an array of strings, the output is always the first string. What is the likely error? - Study24x7
Social learning Network
2 followers study24x7 05 Jul 2024 01:29 PM study24x7 study24x7

In a program designed to find the longest string in an array of strings, the output is always the first string. What is the likely error?

A

Not updating the longest string variable inside the loop

B

Using the wrong comparison operator

C

Not initializing the longest string variable

D

All of the above

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles