tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code06:58

C user input ⌨️

Bro Code ↗

From the creator

C how to accept user input scanf fgets tutorial example explained #C #user #input char name[25]; //bytes int age; printf("\nWhat's your name?"); //scanf("%s", &name); fgets(name, 25, stdin); name[strlen(name)-1] = '\0'; printf("How old are you?"); scanf("%d", &age); printf("\nHello %s, how are you?", name); printf("\nYou are %d years old", age);

Published 2021-08-24 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code