How gets and fgets Function working in C Hindi











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=FOaKg8HFMq8

gets and fgets Function in C • The gets() function is risky to use since it doesn't perform any array bound checking and keep reading the characters until the new line (enter) is encountered. It suffers from buffer overflow, which can be avoided by using fgets(). • The fgets() makes sure that not more than the maximum limit of characters are read. Consider the following example. • void main ()   • {   •     char s[30];   •   printf( Enter the string?  );   •     gets(s);   •     printf( You entered %s ,s);   • } • output • Enter the string? C is the best • You entered c is the best •    • void main()    • {    •    char str[20];    •    printf( Enter the string?  );   •    fgets(str, 20, stdin);    •    printf( %s , str);    • }    • output • Enter the string? Power of knowledge is the best education channel • You entered Power of knowledge i • 🙏 Follow us on our Facebook page •   / powerofknowledgein   • 🙏 Join our facebook group to get more depth in learning of different technologies •   / powerofknowledge   • 🙏 Subscribe To Our Channel • https://www.youtube.com/c/PowerofKnow... • 🙏 For Suggestions and Help, direct message us on Facebook Messenger • m.me/powerofknowledgein • 0:05 introduction start How gets and fgets Function working in C • 0:16 introduction to gets and fgets function • 0:21 diffrence between gets and fgets • 2:32 practical start • #powerofknowledge #cprogramming #getsandfgetsinc

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org