ulvis.paste.net

Paste Search Dynamic
Recent pastes
char x
  1. #include <iostream>
  2. using namespace std;
  3. int fun1 (char*x){char *y=x;
  4. while (*y++);return(y-x- 1) ;}
  5.  
  6. int main() {
  7.         // your code goes here
  8.  char *str1="strinsgfg";
  9. int ans=fun1(str1);
  10. cout<<ans;
  11.         return 0;
  12. }
  13.  
Parsed in 0.002 seconds