Display string with puts() - C String

C examples for String:Display

Introduction

The prototype for puts() is:

int puts(const char *string);

The puts() function is useful for outputting single-line messages, for example:

Demo Code

#include <stdio.h>

int main(void){
  puts("Is there no end to input and output?");
  return 0;// w  w w.  j  ava2 s. co  m
}

Result


Related Tutorials