hi the code I'm talking about is this :
how do i make the "i = 5" a variable not a constant? like i = '\0' or something so it automatically stops when it reaches the end of the string not because i = 5.Code:#include <iostream> int main() { using namespace std; char h[] = "Hello" for (int i = 0; i = 5; i++) cout << h[i]; }