How To Clear The Input Buffer | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

It feels that you're soon going to be the only person known to cover A-Z, of C programming on YouTube... All the other channels miss one topic or the other!! KEEP MAKING SUCH MORE VIDEOS!! 🔥🔥

DarshJTech
Автор

This video is just perfect. no westing time, talks about the every possible scenario and gives solution for each of them while showcasing it perfectly. Best video ever.

ABCD-
Автор

Your videos are getting me through my uni C course. You're a legend! Keep up the videos!

Raied
Автор

thank you so much. I am always confused whenever I see fflush and now I understand even more.

proggenius
Автор

Just had to solve this one the other day. You are a treasure trove of useful c tips and tricks.

arthur_p_dent
Автор

You're a legend. My go to for C programming on youtube.

ning_nang
Автор

printf("Excellent explanation, to the point. Thank you.");

AnirudhSv-he
Автор

Thanks for this! The lingering '\n' after a scanf is one of the most annoying features of C!

bettyswunghole
Автор

I am studying computer science in Italy as an Italian and it makes me very sad when I come across situations like this. We are taught about the "input buffer", but our teachers simply tell us to use "fflush" without providing any explanation on how we can create our own version of this function. This lack of guidance and support is disheartening

nub
Автор

Thanks for referring me to this video. Much appreciated

AhmadAlMutawa_abunoor
Автор

As an Indian I never thought I'd have to watch any other nationals channel for learning programing, but since Ive discovered ur channel I mostly watch ur videos on topics I find hard to understand

SSingh_here
Автор

you helped me so much and kept my brain braining, thank you

TechyBoy
Автор

The fflush() does not work in my compiler. Please remember that fgets() also include the \n in the string

MarcoAurelio-svtk
Автор

Hello, sptr = &S[i];
23
24 printf("Enter name: ");
25 scanf("%[^\n]s", sptr->name);
I am having issue here when I use selective scanf then none of this input buffer works..what approach should I use? My program is regarding students information using structure array and accessing through structure pointer

gol.danime
Автор

You can also use fseek() to clear input buffer.
fseek(stdin, 0, SEEK_END);

glimpse
Автор

your videos are super clear easy and amazing, please make a video about cybersecurity 💚💙💙💙

mohammadahmedragab
Автор

Thank you. I always use while( getchar() != '\n' ); to clear input buffer, but never include c != EOF. It is good to know.

edenng
Автор

Really nice, now i had tottaly understanded how its working

Find your video while searching of alternative fflush(), Thanks!

ГеоргийБелый-нб
Автор

another great video that I added to my portfolio of solutions. if there Bigger than Thank you. Tell me what is it, and I will be glade to to send it back to you . Thanks a lot for helping us

naboulsikhalid
Автор

I've just been thinking about this xd

soIatido