C - Output string text to console window with puts() function

Introduction

The puts() function sends a stream of text to the standard output device.

Here's the format:

int puts(const char *s); 

for example,

puts("text"); 

The following code displays Two Lines of Text

Demo

#include <stdio.h> 

int main() /*from  ww  w .  j av  a 2 s .c o m*/
{ 
     puts("hi,"); 
     puts("test."); 
     return(0); 
}

Result

Related Topic