Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
5/8 C: scanf + gets
Maplewing
May 7th, 2016
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <stdio.h>
int
main
(
)
{
int
a
;
char
s
[
1000
]
;
scanf
(
"%d "
,
&
a
)
;
// gets(s); // 清掉'\n'
gets
(
s
)
;
printf
(
"a: %d
\n
"
,
a
)
;
printf
(
"s: %s
\n
"
,
s
)
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Setup Accounts V3
Lua | 19 sec ago | 10.75 KB
Button Detection rev_02
Arduino | 1 hour ago | 1.71 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
EasyButton Events rev_01
Arduino | 1 hour ago | 1.71 KB
is_VIP
Python | 1 hour ago | 0.35 KB
goaccess.py
Python | 1 hour ago | 0.48 KB
Jump
Java | 2 hours ago | 4.64 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 2 hours ago | 0.38 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!