Notice: session_start(): A session had already been started - ignoring in /home/u614325693/domains/onedoubt.com/public_html/post.php on line 3
C Output - ONEDOUBT.COM

C Output (Print Text)


Output (Print Text)

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

Example

#include

int main() {
  printf("Hello World!");
  return 0;
}

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

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

C Output

Login
ADS CODE