FREE TUTORIALS ON C programming

Sunday, January 26, 2014

#include<stdio.h>

int main()


{

    char str[5];
    
    gets(str);  //reads a string of character from keyboard ****NOT SAFE TO USE****
    
    puts(str);  //prints string to the console
    
    
    getchar(); //waits for a character
    
    return 0;  //successful termination of the program
    
}
12:33 AM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search