Have a Read!

Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!

Sunday, February 6, 2011

How to get a string input way1

#include<stdio.h>
int main()
{
char s[50];
printf("enter\n");
fgets(s,50,stdin);
printf("%s",s);
}

No comments:

Post a Comment

Related Posts with Thumbnails