Question: Why does it stop counting after 54? The input is clearly more than 54 characters. Is there a way to fix that? #include 1 2

Why does it stop counting after 54? The input is clearly more than 54 characters. Is there a way to fix that?

Why does it stop counting after 54? The input is clearly more

#include 1 2 using namespace std; const int LineLength = 90000; int myStrlen(char userInput[]) { int count = 0; for (int i = 0; i clangh-7 -pthread -std-c++17 -o main main.cpp > ./main Enter a sentence: 12345678912345678912345678912345678912345678912345678912345678 91234567891234567891234567891234567891234567891234567891234567891234567891234567 89123456789123456789123456789123456789123456789123456789123456789123456789123456 78912345678912345678912345678912345678912345678912345678912345678912345678912345 67891234567891234567891234567891234567891234567891234567891234567891234567891234 56789123456789123456789123456789123456789123456789123456789123456789123456789123 45678912345678912345678912345678912345678912345678912345678912345678912345678912 34567891234567891234567891234567891234567891234567891234567891234567891234567891 23456789123456789123456789123456789123456789123456789123456789 That sentence has length: 54 > int main() { char user Input[LineLength]; 17 18 19 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!