menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
What is this line of code doing? scanf("%f", &height);
Ask a Question
Questions
Unanswered
Tags
Ask a Question
What is this line of code doing? scanf("%f", &height);
asked
Apr 7, 2018
71.8k
views
2
votes
What is this line of code doing? scanf("%f", &height);
Computers & Tech
high-school
Rabindra Acharya
asked
by
Rabindra Acharya
7.7k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
It's saving a float value in your variable "height".
for example:
float height = 0.0;
printf("Insert your height: ");
scanf("%f", &height);
Priebe
answered
Apr 12, 2018
by
Priebe
8.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Sep 26, 2024
134k
views
Suppose we have a variable of type int named height. Which of the following lines reads a value from stdin and stores it in this variable? a. scanf("%d", height) b. scanf("%d", &height) c. scanf("%s",
Bartek Chlebek
asked
Sep 26, 2024
by
Bartek Chlebek
7.5k
points
Computers & Tech
high-school
1
answer
4
votes
134k
views
asked
Dec 22, 2024
197k
views
Suppose that we call scanf as follows: int count = scanf("%d %f %d", &i, &x, &j); (i, j are int vaiables and x is a float varibale). Assume that the input stream contains the characters are 0.1 0.2 0.3,
Yosmar
asked
Dec 22, 2024
by
Yosmar
8.6k
points
Engineering
high-school
1
answer
1
vote
197k
views
asked
Mar 12, 2024
2.1k
views
Which of the variables will be read in values from the user input string 10,3.14,5? int a, c; float b; scanf("%d , %f , %d", &a, &b, &c); a. a and b b. a, b, and c c. None of them d. Only a e. a and c
Gary Russell
asked
Mar 12, 2024
by
Gary Russell
7.6k
points
Computers & Tech
high-school
1
answer
0
votes
2.1k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty