Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
I included stdio.h and successfully used printf. Why can't I use scanf on solo platform?
c++
1 Vote
2 Answers
5th Nov 2016, 9:02 PM
Emanuel Lozitsky
#include <stdio.h> int main() { char subject ; printf ("Enter your subject\n"); scanf ("%c", & subject ); switch (subject
case
switch
0 Votes
5 Answers
11th Mar 2021, 7:47 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
Anyone please tell me the behaviour of this code in C
c
doubt
scanf
1 Vote
13 Answers
1st Dec 2020, 2:55 PM
Yogeshwaran P
How can i search into an file with scanf and get printf with few lines below?
c
1 Vote
2 Answers
7th Mar 2018, 5:27 PM
Ahsan Iqbal
When input is given in two line why not scanf amd puts is displaying that input
input
output
0 Votes
2 Answers
16th Oct 2019, 2:06 PM
Sabha Nikhat
When using scanf with a char array in C why do both forms work whether you use & (address of) or not for the array name? E.g.
array
c
char
scanf
17 Votes
6 Answers
25th Sep 2018, 8:23 AM
Sonic
Why there is no output of the following code?
format
scanf
specifier
0 Votes
8 Answers
7th Apr 2019, 1:41 PM
Krishna Kumar
in c program we write scanf statement .what we have to take in java to read the statement??
java
3 Votes
2 Answers
27th Dec 2016, 11:40 AM
kavya
What is the difference between "scanf" and "scanf_s" in C ?
c
scanf
1 Vote
2 Answers
16th Nov 2018, 12:29 AM
B15
My program is correct or not confused because in computer programs display differently than in it should i have to use scanf ?
confusion
2 Votes
9 Answers
8th Nov 2018, 1:03 PM
Lata Mishra
I haven't found the option for enter multiple value with the scanf function, plzz help me out
c
0 Votes
2 Answers
19th Apr 2020, 11:28 AM
saurabh singh
What happens when i use , (comma) here between %ds in => scanf("%d,%d",&a,&b);
c
comma
scanf
0 Votes
10 Answers
21st Oct 2018, 6:46 AM
Jishnu
Why this is not working?how to make it work?
c
scanf
string
2 Votes
6 Answers
1st Dec 2021, 9:09 AM
gaurav kumar
In C++ and C we use cin and scanf for value reading purpode and printf and cout for writing purpose .
python
strings
0 Votes
7 Answers
11th Sep 2017, 4:22 PM
priya varshini
I don't know how does this code work? Please help me understand the behaviour of this code in C
address
pointer
scanf
1 Vote
7 Answers
26th Nov 2020, 1:57 PM
Yogeshwaran P
How do I format the input with scanf?
c
scanf
0 Votes
2 Answers
18th Dec 2019, 2:12 AM
Hu Shuikang
How to verify the scanf's input
c++
scanf
0 Votes
2 Answers
1st Feb 2019, 5:49 PM
Dimitri Felix
Why this code is not working ?
c
input
scanf
1 Vote
3 Answers
17th Apr 2022, 5:31 PM
Samael
[SOLVED] Confusion in C scanf()
c
confusion
scanf
0 Votes
5 Answers
5th Oct 2020, 10:54 AM
Bibek Oli
we study without using cout we use float intiger and printf scanf what is the difference between them
c++
0 Votes
2 Answers
9th Jul 2016, 12:54 PM
Sujan Pandey
Initializing Var with Scanf()
c
input
scanf
2 Votes
4 Answers
18th Jul 2020, 11:18 AM
Oliver
How to make string enter program
scanf
string
0 Votes
1 Answer
21st Jan 2018, 6:46 AM
Sufal Chhabra
How to scan more than 1 times in sololearn compiler??
c_language
scanf
sololearn_compiler
2 Votes
3 Answers
6th Feb 2020, 11:22 AM
ISTIAQUE ZAMAN
How to take an input from the user in php? like we use scanf in C to take input from the user..
php
1 Vote
3 Answers
4th Nov 2016, 5:05 AM
Radhika Gupta
Can scanf() function can overwrite the limit setted by char array data type to store data?
char_array
overwrites
scanf
1 Vote
2 Answers
10th Sep 2020, 6:38 AM
Yogeshwaran P
Write program for finding LCM of two numbers using GCF
loops
printf
scanf
2 Votes
2 Answers
23rd Feb 2018, 4:56 PM
Gudla Swathi
C++; What is the difference between scanf()/printf and cin/cout ?
c++
cin
cout
printf
scanf
2 Votes
12 Answers
17th Jan 2021, 5:45 PM
Martyna Tomaszewska
I want to use scanf function to get an input and then assign it's value to my array? Can You Please help me out?
arrays
c
functions
pointers
programming
raj
scanf
2 Votes
1 Answer
18th Jan 2019, 2:11 PM
Vinayak Sharma
help me! I do not know what happened to my code. I want to put information from scanf into printf but the result is not as I e
code
don't
expect
happened
help
know
mycode
printf
result
scanf
1 Vote
3 Answers
8th Nov 2019, 4:29 AM
Phuong Pham
What is scanf(%[^\n]s ) about String??
c
programming
scanf
strings
2 Votes
3 Answers
3rd Aug 2020, 7:19 AM
Aniket Gade
What is the role of scanf? How it can be used?
input
output
scanf
1 Vote
2 Answers
27th Mar 2019, 7:25 PM
Rohan Agarwal
My code that adds coordinates to an array does not work
array
c
scanf
0 Votes
1 Answer
15th May 2020, 3:28 PM
Guido Parlatore
C "int" input problem
c
input
int
language
programming
scanf
0 Votes
8 Answers
3rd Feb 2021, 8:03 AM
🌀 Shail Murtaza شعیل مرتضیٰ
explain in simple words the use of %2d, *, %5s in scanf("%2d %d %*f %5s", &x, &y, text), where text is text[20] ?
input
output
scanf
0 Votes
2 Answers
1st Oct 2019, 4:56 PM
Sk. Ahmed Razha Khan
Noobie, why isnt this working?
c
help
new
scanf
1 Vote
4 Answers
17th Jul 2019, 11:12 PM
Jarvis
Input string with new line
input
multilinesectnce
scanf
string
2 Votes
1 Answer
28th Jun 2019, 7:10 AM
MD Sisir
why "gets" does not take any input after "scanf" in C language ?
c
gets
scanf
strings
1 Vote
4 Answers
15th Jul 2019, 7:13 PM
Kunal Kumar Thakur
Why does fgets take from the previous line?
c
fgets
newline
scanf
1 Vote
3 Answers
2nd Dec 2020, 7:13 PM
Zerokles
Como seria una salida de texto usando printf?
c++
cout
scanf
1 Vote
2 Answers
13th Sep 2017, 2:25 AM
JOSE NOVA
in c language get the value using printf and print the value using scanf statement . But we using (console.writeline ) command
c#
-5 Votes
1 Answer
1st Nov 2016, 9:31 AM
Hari Haran
How to get character data in c program
c
data-types
input
scanf
3 Votes
1 Answer
17th Oct 2019, 10:58 PM
Fahim Rayhan
What is the return type of scanf() and printf() in C?
c
data-type
data-types
printf
return
scanf
12 Votes
7 Answers
12th Mar 2018, 5:43 PM
Amit Haldiya
Cygwin error in my function (C)
c
cygwin
function
scanf
0 Votes
2 Answers
26th Jun 2020, 2:59 PM
Guido Parlatore
How do you clear the input buffer in C?
buffer
c
input
memory
scanf
4 Votes
3 Answers
29th Jun 2019, 4:31 AM
haydenki
what will this printf print ?
c
printf
scanf
1 Vote
1 Answer
4th Feb 2018, 8:57 AM
Anonymous Guy
Difference between scanf("%c",p); and scanf("%c",&p); in c???
c
c++
input
java
scanf
1 Vote
6 Answers
16th Jul 2020, 3:08 AM
C Lover
Alternative for gets() in C?
alternative
c
gets
scanf
warning
4 Votes
3 Answers
12th Jun 2020, 5:18 AM
Mahdee Mohammad
"scanf" function problem(c++)
c
cpp
error
function
problem
scanf
0 Votes
8 Answers
13th Oct 2020, 6:37 AM
Podashev David
How can i get String input in C?
c
in
input
scanf
string
via
1 Vote
8 Answers
30th Jul 2020, 11:25 AM
Yogeshwaran P
I can able get input string but I couldn't get input character why?
c
char
java
printf
scanf
string
0 Votes
11 Answers
16th Jul 2020, 2:53 AM
C Lover
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
4
Next >
Hot today
What's wrong with this code ? ( Beginner)
4 Votes
Pig Latin
0 Votes
Someone can help me
0 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
Currently learning C++, I’m getting into socket programming with C++
0 Votes
I’m new someone can help me
0 Votes
Is there any new bug in the projects reply sections?
1 Votes
What's doctype htMl
2 Votes
HTML community, HELP!!
0 Votes