Paste Search Dynamic
Recent pastes
strlen
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. char s1[]="Finish";
  8. char *ptr=&s1[0];
  9. for (int i=0; i<strlen(s1);i++, ptr++)
  10. cout << *ptr << " "<<s1[i]<<endl;
  11.  
  12.         return 0;
  13. }
  14.  
Parsed in 0.002 seconds