Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 11, 2021 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/5cff6c6ab6ee12ca5ba7627ce9ec7bdb to your computer and use it in GitHub Desktop.
Save amankharwal/5cff6c6ab6ee12ca5ba7627ce9ec7bdb to your computer and use it in GitHub Desktop.
#include <iostream>
# include <string.h>
using namespace std;
int main(){
string word = "thecleverprogrammer";
int i = 0;
while (word[i]){
i++;
}
cout<<i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment