Skip to content

Tag Archives: gets

gets() gets is a more convenient method of reading a string of text containing whitespaces. Unlike scanf(), it does not skip whitespaces. It is used… Read More
Consider the below program.  C void read() {    char str[20];    gets(str);    printf("%s", str);    return; } The code looks simple, it reads string from standard input… Read More