/*
 * Examples on the difference between scanf and gets 
 */

#include <stdio.h> 

#define LINE_LEN 30  

int
main()
{
    char line[LINE_LEN]; 

    printf("Enter a line: "); 
    gets(line); 

    printf("gets stores '%s' in line[]\n",line); 

    return 0; 
} 
