Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

C Output (Print Text)


Output (Print Text)

To output values or print text in C, you can use the printf() function:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");
  return 0;
}
Try it Yourself »

You can use as many printf() functions as you want. However, note that it does not insert a new line at the end of the output:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");
  printf("I am learning C.");
  return 0;
}
Try it Yourself »