Video není dostupné.
Omlouváme se.

understanding getchar and input buffer in c

Sdílet
Vložit
  • čas přidán 12. 08. 2024
  • Video showing how to use getchar in a loop.
    𝗗𝗼𝗻'𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝗮𝗻𝗱 𝘀𝗺𝗮𝘀𝗵 𝘁𝗵𝗲 𝗯𝗲𝗹𝗹 𝗯𝘂𝘁𝘁𝗼𝗻!
    Download source code at:
    drive.google.com/file/d/1u9-k...
    Follow us on Facebook
    / alltech-1089946481026048

Komentáře • 24

  • @vinayak186f3
    @vinayak186f3 Před 4 lety +3

    Editing skills 🔥🔥🔥🔥🔥🔥

  • @AllTechPage
    @AllTechPage  Před rokem

    🎅 Christmas Udemy Cupons 🎅 Ends in 1 day! 89% OFF!
    🎁 Python Docx from Beginner to Winner 🎅 www.udemy.com/course/python-docx-from-beginner-to-winner/?couponCode=DECEMBER_19_22
    🎁 Python PDF Handling from Beginner to Winner 2023 🎅 www.udemy.com/course/python-pdf-handling-from-beginner-to-winner/?couponCode=DECEMBER_19_22
    🎁 Python TkInter from Beginner to Winner 2023 🎅 www.udemy.com/course/python-tkinter-from-beginner-to-winner/?couponCode=DECEMBER_19_22
    🎁 Python ReportLab from Beginner to Winner 2023 🎅 www.udemy.com/course/python-reportlab-from-beginner-to-winner/?couponCode=DECEMBER_19_22
    🎅 Cupons de Natal 🎅 Termina em 1 dia! 89% de desconto!
    🎁 Python Docx de Iniciante a Vencedor 🎅 www.udemy.com/course/python-docx-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
    🎁 Python Manipulação de PDF de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-manipulacao-de-pdf-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
    🎁 Python TkInter de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-tkinter-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
    🎁 Gerando Arquivos PDF com Python e ReportLab 2023 🎅 www.udemy.com/course/gerando-arquivos-pdf-com-python-e-reportlab/?couponCode=DECEMBER_19_22
    🎁 Python ReportLab de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-reportlab-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22

  • @mauricioguerrero1071
    @mauricioguerrero1071 Před 3 lety +3

    Thank you, very well explained!
    Nice slides btw

  • @sontruongnguyen2046
    @sontruongnguyen2046 Před 4 lety +2

    Great video. Thank you, man!

  • @asdasdasdasdasdasd3485
    @asdasdasdasdasdasd3485 Před rokem +1

    Is getchar a buffered function and is it echoed? By echoed I am referring to whether or not values from getchar are printed on the screen twice?
    I assume it is about standard output and shell, not so much connected to C itself.

  • @sarba85528
    @sarba85528 Před 2 lety

    Thank you!! You solved a mystery for me

  • @snakeleon
    @snakeleon Před 4 lety +1

    Thanks for the help!

    • @AllTechPage
      @AllTechPage  Před 4 lety

      Thank you Snake :)
      Sorry for the delay..for some unknown reason youtube marked your comment as spam :s so I just saw your comment after reviewing :)

  • @c_was8020
    @c_was8020 Před 2 lety

    Thanks for this, what an annoying little issue.

  • @shail0124
    @shail0124 Před 3 lety +1

    Thanks!
    And we can also use
    fflush(stdin);
    after taking input to clear buffer

    • @Oodelally
      @Oodelally Před 3 lety +1

      This only works in Microsoft’s C compiler (visual studio) and causes UB in others

  • @piyushaneja7168
    @piyushaneja7168 Před 3 lety

    So is there any particular rule when we should use getchar() to avoid this problem beforehand Or when we don't get output then we add getchar() snd resolve the issue at that time only

  • @ohmnamo7056
    @ohmnamo7056 Před 4 lety +1

    thanks bro helped a lot👋

  • @FlavioSilva-wh9kb
    @FlavioSilva-wh9kb Před 3 lety

    Thanksss teacher xD

  • @arpit5506
    @arpit5506 Před 4 lety +1

    thank you so much

  • @mainakmukherjee3444
    @mainakmukherjee3444 Před 2 lety

    What is the function of taking char c here ..can you please explain

  • @rodrigoribeiro5885
    @rodrigoribeiro5885 Před 2 lety

    Thanks from Brazil