Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 19th, 2018
89
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<iostream>
using namespace std;
int length(char* str)
{
int size = 0;
while(str[size]!=0)
{
size++;
}
return size;
}
int main()
{
char a[100];
cin >> a;
cout << length(a);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 13 min ago | 0.39 KB
React without hooks
JavaScript | 24 min ago | 1.57 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 42 min ago | 0.38 KB
script to link existing Batocera assets in Em...
Bash | 1 hour ago | 1.78 KB
fsm converter v1
Python | 1 hour ago | 12.60 KB
Untitled
Python | 1 hour ago | 0.26 KB
CCO Training Contest 4 Three Nodes
C++ | 1 hour ago | 8.76 KB
GPA Calculate
Python | 2 hours ago | 3.50 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!