निम्नलिखित for लूप कितनी बार निष्पादित होगा? exp: "56247839"
How many times will the following for loop execute? exp: “56247839”
A
7
B
8
C
1
D
Infinite
Explanation
To determine how many times the for loop will execute, let's analyze the string "56247839".
If the loop is iterating over each character in the string, it will run once for each character.
The string "56247839" has 8 characters.
So, the for loop will execute 8 times.
Answer: (B) 8
Correct Answer: B) 8