Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input and Output functions (printf and scanf) in C
#1
`printf()` is used to display output to the console, and scanf() is used to read input from the user.

int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("Your age is %d\n", age);
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  User input and output with double in C Qomplainerz 0 427 07-26-2023, 06:03 PM
Last Post: Qomplainerz
  Misusing scanf() in C Qomplainerz 0 201 07-26-2023, 07:11 AM
Last Post: Qomplainerz
  Overview of standard C library functions Qomplainerz 0 228 07-25-2023, 01:28 PM
Last Post: Qomplainerz
  Passing pointers to functions in C Qomplainerz 0 281 07-25-2023, 11:42 AM
Last Post: Qomplainerz
  Declaring and defining functions in C Qomplainerz 0 294 07-25-2023, 11:01 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)