Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<algorithm>
- using namespace std;
- unsigned strlen(const char *str)
- {
- int counter = 0;
- for (; *str != '\0'; str++) { counter++; }
- return counter;
- }
- int main() {
- char k[2];
- cout << strlen(k);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement