fgets() and gets() in C Programming
Introduction We all are familiar with the scanf() function. It is the main function applicable to take basic user inputs. Even though scanf() works great while taking inputs such as integer, character, float etc. It certainly falls behind while taking string inputs containing whitespaces. Let's take a look at an example, #include<stdio.h> int main() { […]