C Programing Issues with scanf() and character data

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I was stuck for hours because of this problem and it was very frustrating. Glad I found this video!

lordmortymer
Автор

Thank you so much for this video, you literally saved me hours and hours of good;e searches and reading articles. This video is providing me both with an explanation to the problem and the solution to it. Once again thanks from a new programmer in the wondrous world of C!! ❤️

ShmollNutz
Автор

Thank you so much! I'm a newbie and was so frustrated with this issue until your thorough and very easy to follow explanation. I'll have to check out your other material.

Alex
Автор

Thank you a lot! I was facing exactly the same problem in my study

cicciothelynx
Автор

You can also use the function fflush(stdin), stdin means “standard input”. You should use that function before each scanf. That function “cleans” the keyboard buffer so commands like <enter> don't stay there until another scanf function read them and there is where the problems start. 😅

maximarquez
Автор

The only video where sm1 expalined clearly ...ThankYou

GauravSharma-jerj
Автор

A really great video. Please keep sharing 🙏

lylemarkanunciado
Автор

Very well explained, Thankyou, you deserve to be the best teacher, you are the best

naveen-malik
Автор

thank you so much👍 you solved my problem which i am trying to fix it since last 7-8 hrs

aparnakadam
Автор

Great explanation really clear my all doubts....🙌🙌🙌🙌🙌

mognad
Автор

Thank you so much this is very helpful I was searching for that a for a long time

riaddjaid
Автор

Thank in 2days of making imput and just simple fucking (\n) i get it HAHAHA

guiandavidguieb
Автор

thnks !! was having troubles with that

omshankardwivedi
Автор

Wow. Thank you a lot! That really helped

yousfimohamedislem
Автор

Great explanation .
Your teaching is so good🙏🏻.
Similarly we can used this concept at gets() function, for the string?

aayushcharde
Автор

Nice explanation but can you explain what happened when we put
\n in scan("\n %c", &firstinitial)
And what happens if we write as follows scanf (" %c", &firstinitial) thank you

mr.mahedihusainlokhandwala
Автор

you get the same result if you empty the buffer after reading the number with: getchar();
like
scanf("%d", &favNum);
getchar();

angeloliveira