Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
5/8 C: scanf + gets
Maplewing
May 7th, 2016
72
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
🤑G2A.com Free Gift Card Guide June 2024 Fix🎁
JavaScript | 16 sec ago | 0.33 KB
🤑G2A.com Free Gift Card Guide June 2024 Fix🤑
JavaScript | 6 min ago | 0.32 KB
Guild Emojis List
ASM (NASM) | 9 min ago | 2.33 KB
Guild Emojis List's Interaction Code
ASM (NASM) | 11 min ago | 5.19 KB
💲 G2A.com Free Gift Card Guide 06 June 2024 💲
GetText | 12 min ago | 0.36 KB
🤑G2A.com Free Gift Card Guide June 2024 Fix🤑
JavaScript | 12 min ago | 0.32 KB
🤑G2A.com Free Gift Card Guide June 2024 Fix🤑
JavaScript | 18 min ago | 0.33 KB
🤑G2A.com Free Gift Card Guide June 2024 Fix🎁
JavaScript | 24 min ago | 0.33 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!