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 432 07-26-2023, 06:03 PM
Last Post: Qomplainerz
  Misusing scanf() in C Qomplainerz 0 206 07-26-2023, 07:11 AM
Last Post: Qomplainerz
  Overview of standard C library functions Qomplainerz 0 245 07-25-2023, 01:28 PM
Last Post: Qomplainerz
  Passing pointers to functions in C Qomplainerz 0 290 07-25-2023, 11:42 AM
Last Post: Qomplainerz
  Declaring and defining functions in C Qomplainerz 0 303 07-25-2023, 11:01 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 1 Guest(s)