Introduction
In C Programming language, gets()
function is used to take input from the user. Unlike scanf()
, gets()
reads a whole line of text, stops reading when Enter key is pressed, and does not discard the newline character.
In this lab, we will learn how to use the gets() function in C programming through step-by-step instructions.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
c(("`C`")) -.-> c/UserInteractionGroup(["`User Interaction`"])
c(("`C`")) -.-> c/BasicsGroup(["`Basics`"])
c(("`C`")) -.-> c/FunctionsGroup(["`Functions`"])
c/UserInteractionGroup -.-> c/output("`Output`")
c/BasicsGroup -.-> c/data_types("`Data Types`")
c/BasicsGroup -.-> c/operators("`Operators`")
c/FunctionsGroup -.-> c/function_declaration("`Function Declaration`")
subgraph Lab Skills
c/output -.-> lab-123354{{"`Use of Gets Function in C Programming`"}}
c/data_types -.-> lab-123354{{"`Use of Gets Function in C Programming`"}}
c/operators -.-> lab-123354{{"`Use of Gets Function in C Programming`"}}
c/function_declaration -.-> lab-123354{{"`Use of Gets Function in C Programming`"}}
end