New answers tagged


The cs50 function get_string() takes care of writing to name. It both prints out the message "What is your name" and puts the user input into name. The scanf line is unnecessary and can be removed. These cs50 var types and functions were created to streamline getting data while you're learning to code, so you don't have to figure out scanf and ...

Top 50 recent answers are included