Question 6 What is the output? const int MAX_LEN = 10; char userStr [MAX_LEN] = "PASS123"; int i; for (i = 0; userStr[i]
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 6 What is the output? const int MAX_LEN = 10; char userStr [MAX_LEN] = "PASS123"; int i; for (i = 0; userStr[i]
Question 6 What is the output? const int MAX_LEN = 10; char userStr [MAX_LEN] = "PASS123"; int i; for (i = 0; userStr != '\0'; ++i) {} userStr = tolower(userStr); } O pass123 O Pass123 PASS123 O Error: The string contains a digit that cannot be converted to lowercase