C: Using scanf to assign more than one value.
Channel:
Subscribers:
772
Published on ● Video Link: https://www.youtube.com/watch?v=Bu2d5hXJTTM
Short demonstration of how scanf can be used to accept input for more than one variable assignment. In this case, an integer and a double are assigned. Note what happens when a double is entered for an integer, and vice versa.
Git repo: https://github.com/pereiradaniel/c_programs/blob/master/scanf/scanf.c
Blog: https://pereiradpg.blogspot.com/2023/01/c-using-scanf-to-assign-more-than-one.html
Other Videos By Daniel Pereira
2023-01-07 | Pac-Land - C64 [50Hz] |
2023-01-07 | C: Looped program without using goto statement. |
2023-01-06 | Pac-Mania - C64 [50Hz] |
2023-01-06 | C: Modify a calculator program to loop until user quits. |
2023-01-05 | Super Pac-Man - C64 [50Hz] |
2023-01-05 | C: Calculate discount price based on quantity input by user. |
2023-01-04 | Jr. Pac-Man - C64 [50Hz] |
2023-01-04 | C: Program that formats date input by the user. |
2023-01-03 | Ms. Pac-Man - C64 [50Hz] |
2023-01-03 | Ms. Pac-Man - C64 [60Hz] |
2023-01-03 | C: Using scanf to assign more than one value. |
2023-01-02 | Pac-Man - C64 [60Hz] |
2023-01-02 | Pac-Man - C64 [50Hz] |
2023-01-02 | C: Ternary operator demonstration. |
2023-01-01 | Rodland - C64 [50Hz] |
2023-01-01 | C: Nested Loops. |
2022-12-31 | Zamzara - C64 [50Hz] |
2022-12-31 | Stormlord - C64 [50hz] |
2022-12-30 | Arduino controlled fan. |
2022-12-18 | It's Magic - C64 [50Hz] |
2022-12-18 | Hawkeye - C64 [50Hz] |
Tags:
C programming
C language
computer programming
coding
tutorial
scanf
variables