What will the following program print, string output - C Language Basics

C examples for Language Basics:printf

Description

What will the following program print, string output

Demo Code

#define MESG "this is a test" 

#include <stdio.h> 

int main(void) { 
   int n = 0; /*from w  w  w.j  a v a  2 s  .  co  m*/
 
   while ( n < 5 ) 
      printf("%s\n", MESG); 
      n++; 
   printf("That's all.\n"); 
   return 0; 
}

Result


Related Tutorials