Traversing Strings
Explore different ways of traversing strings in C.
We'll cover the following...
We'll cover the following...
Method 1: Using the for loop
RUN the code given below and see the output!
Line 7: The loop runs only up to i = 5. In this method, we must specify the length of the string in the for loop.
Line 8: Prints the character at index, i, of an array, ...