Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int strlen(const char *x);
- int main()
- {
- char *a;
- a="Paste Fericit";
- cout<<strlen(a);
- return 0;
- }
- int strlen(const char *x)
- {
- int i=0;
- while(x[i]!='\0')
- {
- i++;
- }
- return i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement