Input and Output: Printf and Scanf - C Programming Tutorial 06

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • See complete series on C programming here:
    • Introduction to Progra...
    In this tutorial, we have explained printf and scanf functions in C that are used to read input and write output from command line or Console.
    For more such videos and updates, subscribe to our channel:
    / mycodeschool
    You may also like/follow us on Facebook/Twitter:
    / mycodeschool
    / mycodeschool

Комментарии • 99

  • @sourPollo
    @sourPollo 4 года назад +53

    printf("You explain better than my professor... thanks!");

  • @rearea784
    @rearea784 7 лет назад +10

    I wish I have discovered your channel earlier, nevertheless I am happy to actually learn and thankful to you. You are definitely the master of pedagogy, you make easy what is thought impossible.

  • @brendananderson9102
    @brendananderson9102 3 года назад +1

    Thank you. The diagrams are really helpful. I've been writing them down.

  • @Travellife8877
    @Travellife8877 7 лет назад

    your way of describe a topics with visual effects were gr8...thank..for ur concepts...

  • @omprakashpagadala5545
    @omprakashpagadala5545 10 лет назад +15

    i request my codeschool to upload more videos on c. like loops etc
    thank u

  • @jeandavidbeauboeuf3048
    @jeandavidbeauboeuf3048 4 года назад +1

    What is the use of " %d " why dont we just type for example " printf(c)???

  • @_PrajaktaMokale
    @_PrajaktaMokale 3 года назад +1

    Bro thank youuu ❤️❤️❤️❤️🥰🥰🥰🥰

  • @Xalgurom
    @Xalgurom 7 лет назад +5

    Nice and well explained tutorial.,.. i really liked the memory visualization

  • @zenjon7892
    @zenjon7892 7 лет назад +1

    Could you make some video(s) on loops? I can't find them if you have

  • @siniel8362
    @siniel8362 3 года назад +1

    If printf in C cout in c++ what scanf in c++??

  • @Иринакролики
    @Иринакролики 8 лет назад +8

    an excellent lesson, thank you so much!!

  • @MohamedSHbib
    @MohamedSHbib 7 лет назад +2

    Nice, very nice. Thank you for the effort of sharing you knowledge with others in need of it like myself.

  • @zulfikarrahman7495
    @zulfikarrahman7495 7 лет назад +8

    I dont know this page is so awesome..it make me understand how to make some program

  • @elescoces33
    @elescoces33 7 лет назад +2

    Amazing! Thanks for the lesson. You are awesome! :)

  • @brownlkt
    @brownlkt 7 лет назад +2

    I was struggling with this but you helped me understand this in a way that my teacher was not explaining. Thank you very much! I will definitely be using your videos to help me throughout my course!

  • @nirajabcd
    @nirajabcd 10 лет назад +2

    Also, are you planning to add videos on graph and beyond? I am waiting for them :)

  • @nikitatalele4084
    @nikitatalele4084 6 лет назад +2

    Thank You So much for such a useful videos. keep posting.

  • @himanshusingh5118
    @himanshusingh5118 8 лет назад +1

    Very very thnx sir u clear my doubt.. What is scanf.!! Nyc job👍

  • @Althmash
    @Althmash 10 лет назад +2

    what if we add space in between "%d and %d" in printf,, i've done it and the value of b is resulting with 1024 i didn't get that :/

    • @kushalsb460
      @kushalsb460 5 лет назад

      you also need to supply another identifier of integer type.

  • @kirtipathak5114
    @kirtipathak5114 6 лет назад +2

    I like your way of explaining .. Its so understandable and clear thank you

  • @SAIPRIYADARSHINIJ
    @SAIPRIYADARSHINIJ 3 года назад +1

    Excellent explanation..... thank god for finding this channel for easy understanding of the subject

  • @kishoremahato9947
    @kishoremahato9947 7 лет назад +1

    amazing explanation of everything. Thanks!amazing explanation of everything. Thanks!

  • @razzakahmad8731
    @razzakahmad8731 6 лет назад +1

    yo buddy its the best explanation. I have seen many videos but could not grasp the meaning of these functions. thanks a lot man.

  • @ngumichaelscots7849
    @ngumichaelscots7849 4 года назад +1

    Thank you so much,the video was so helpful

  • @LuisEnriqueFuentesPlata
    @LuisEnriqueFuentesPlata 7 лет назад +1

    Very Good this guy is amazing, keep up doing this videos bro.

  • @abdelrahmanhassan8132
    @abdelrahmanhassan8132 3 года назад

    great

  • @nirajabcd
    @nirajabcd 10 лет назад +1

    Also, are you planning to add videos on graph and beyond? I am waiting for them :)

  • @quintisfrazier1516
    @quintisfrazier1516 Год назад

    i'm sorry I don't get . so i will me on does anyone have the full code?

  • @Nitinvishwakarma1505
    @Nitinvishwakarma1505 2 года назад

    Are bhai computer💻 kya video computer par nahi baanye yha toh laptop💻 pe baanaye hote

  • @hasibarian3588
    @hasibarian3588 7 лет назад +1

    amazing explanation of everything. Thanks!

  • @sahijpreetsingh3075
    @sahijpreetsingh3075 3 года назад

    Who is here from chandigarh university???

  • @-MadhumithaBasetti
    @-MadhumithaBasetti 3 года назад

    Why we should type space for many times?

  • @devbhuva9798
    @devbhuva9798 2 года назад

    Perfecttttt...This was the video I was looking for..Cleared my confusion

  • @MsPAL2010
    @MsPAL2010 9 лет назад

    Hi, yo know why 10 ^ 23 = -2147483648 in language C? Thanks you

  • @kebakaonebajaki1018
    @kebakaonebajaki1018 7 лет назад +1

    keep up the good work.really helpful!

  • @brandonfigueroa2800
    @brandonfigueroa2800 5 лет назад

    im doing a conversion of kilometers in miles and im pretty sure ive done it right it builds and it runs as well. but when I enter the value and hit enter my program exits out. any help would be greta

  • @AdithyaS-mn6or
    @AdithyaS-mn6or 7 лет назад

    I don't know the basics of c programming how it's used and why. Pls explain

  • @toxiclion3397
    @toxiclion3397 3 года назад

    Printf("I understand you more than my professor... thanks!");

  • @nunekusuma4145
    @nunekusuma4145 3 года назад

    Thanks a lot...😊
    I understood.
    Rest in peace bro 🥲😔

  • @youcefyassef5672
    @youcefyassef5672 2 года назад

    very good lesson, thank you sir very much, clear and concise.

  • @piumisenanayake5221
    @piumisenanayake5221 3 года назад

    Your explain is better. Thank you very much

  • @AmelJones
    @AmelJones 7 лет назад +1

    you saved my exams!! thank youuuu

  • @fergusondrozenski9888
    @fergusondrozenski9888 8 лет назад +1

    This is a great video, thanks!

  • @leoabhi4343
    @leoabhi4343 8 лет назад +1

    thanks

  • @a1234-e1w
    @a1234-e1w 2 года назад

    So much talk so little info

  • @JayTailor45
    @JayTailor45 8 лет назад +1

    Thankyou :D

  • @philipuswijaya7240
    @philipuswijaya7240 5 лет назад

    Thanks :)

  • @franceestrera
    @franceestrera 7 лет назад +2

    i dont really understand programming why that happends

    • @ericquan2935
      @ericquan2935 6 лет назад +1

      You can try to learn about Operating systems and hardware.

  • @heytheremogwai
    @heytheremogwai 7 лет назад

    question...I'm trying to input a four digit integer (like 1234). is there a way to selectively (or parse) each digit of the integer by using the %d formatting?

    • @probhakarsarkar2430
      @probhakarsarkar2430 7 лет назад

      # include
      int main()
      {
      int a,b,c;
      scanf("%1d %1d %1d",&a,&b,&c);
      printf("a=%d b=%d c=%d",a,b,c);
      }
      even using some garbage variable u expand ur selectivity

  • @Dailyhieveryday
    @Dailyhieveryday 4 года назад

    i lost my brain cell

  • @infopedianews9221
    @infopedianews9221 3 года назад

    Thank you sir to make me understand....

  • @prashikdeshpande9637
    @prashikdeshpande9637 6 лет назад

    Which Playlist after this Introduction?!

  • @prakashthakur1136
    @prakashthakur1136 7 лет назад

    Thank u Sir.... U r Great
    Thanks for this vedio

  • @sparkden
    @sparkden 7 лет назад

    can you make a video how to install visual studio?! thank you.

  • @AMITSHARMA-oh1nq
    @AMITSHARMA-oh1nq 4 года назад

    Codeschool was died in a car accident 😔

  • @albertgao7256
    @albertgao7256 8 лет назад

    Splendid! Finally know why and when should we use pointer!

  • @anishshakha7419
    @anishshakha7419 3 года назад

    thank u sir \

  • @krishnakumar-kh5vo
    @krishnakumar-kh5vo 4 года назад

    Which ide/editor are u using sir?

  • @_manish519
    @_manish519 3 года назад

    thank you very much brother

  • @vedantrishibros2410
    @vedantrishibros2410 5 лет назад

    how do you run your commands in windows

  • @stevealvarado7313
    @stevealvarado7313 8 лет назад

    very good thank you so much!

  • @YashPavaskar
    @YashPavaskar 3 года назад

    Good teacher ❤️👍

  • @WennyeiKheang978
    @WennyeiKheang978 5 лет назад

    Thank you so much

  • @Farmer_Fm
    @Farmer_Fm 7 лет назад

    Still idont know the exact time to use float,scanf amd printf.please reply me

    • @timothyishmael2096
      @timothyishmael2096 7 лет назад +1

      I don't think he's explained float yet, but the printf is the command to tell the program to display whatever is inside it, and the scanf is the command to receive input from the user of the program.

    • @Farmer_Fm
      @Farmer_Fm 7 лет назад

      Timothy Ishmael ty

    • @Jack-gx8xn
      @Jack-gx8xn 7 лет назад +1

      Sorry for late reply
      Float is used when you have number in decimal like 26.58, 56.1, etc number which have point in it.
      int is used when you want to use a numbers which not have point in it like 28, 58, 56, etc
      printf is used when you want to print something on screen.
      scanf is used when you want to take data from user.

  • @subhankarbarua775
    @subhankarbarua775 6 лет назад

    #include
    int main()
    {
    int age;
    float weight;
    char sex;
    scanf("%d",&age);
    scanf("%f",&weight);
    scanf("%c",&sex);
    printf("age = %d, weight = %f, sex = %c",age,weight,sex);
    return 0;
    }
    this is my program i am not getting the result of sex!!! the run function is not leting to input the sex

  • @sandwel3273
    @sandwel3273 7 лет назад

    nice sir 👍 thanks

  • @nilay0911
    @nilay0911 7 лет назад

    thnx for these all lessons

  • @Bhuyan_G
    @Bhuyan_G 6 лет назад

    where do i write programs ?
    i have code blocks compiler , but programs aren't running

    • @parasrawat6950
      @parasrawat6950 6 лет назад

      ideone.com/lVixoB try this online compiler

    • @MrHitMarker182
      @MrHitMarker182 6 лет назад +1

      code blocks is an IDE, you may need to install a GCC (mingw, cygwin, etc) in order to compile your code.

  • @zeenatsalehtania7144
    @zeenatsalehtania7144 3 года назад

    Printf("Thnx");

  • @svineet623
    @svineet623 6 лет назад

    void main ( )
    {
    int x;
    x = printf(“I See, Sea in C”);
    printf(“
    x= % d” , x);
    } explain

  • @supergdify
    @supergdify 8 лет назад

    Excellent tutorial

  • @kishoremahato9947
    @kishoremahato9947 7 лет назад

    thank u so much

  • @subramanyabhattm4626
    @subramanyabhattm4626 6 лет назад

    was helpfull thank you////

  • @jaskiratsaini8376
    @jaskiratsaini8376 6 лет назад

    if I write 'return1' instead of return0 what is the difference ??

    • @ivanadjordjevic6593
      @ivanadjordjevic6593 6 лет назад

      When using "Return" function,you are actually doing so called "early exit out of a program".If you want your program to stop executing at some point you write return function.You can write only "return;" or "return 0;" or "return 1;" or "return 5;",It does not matter,but it matters if you use int main()(return 1; used usually) or void main()(return; used in this case) as an entrance function.

  • @mikidoll2000
    @mikidoll2000 2 года назад

    u r a best teacher on this planet earth

    • @yedmavus
      @yedmavus 2 года назад +1

      Unfortunately, he is not on this planet any more.

  • @jayednahian3099
    @jayednahian3099 8 лет назад

    thanks

  • @vijaysaikaranam7520
    @vijaysaikaranam7520 2 года назад

    Tq sir

  • @faysalrahaman9546
    @faysalrahaman9546 5 лет назад

    Nice

  • @raghabcrioccj8416
    @raghabcrioccj8416 6 лет назад

    thank you.

  • @tahirali6409
    @tahirali6409 9 лет назад

    thanks

  • @neerajvishwakarma8898
    @neerajvishwakarma8898 8 лет назад

    realy helped me

  • @azizas9366
    @azizas9366 10 лет назад

    Thanks

  • @adwaithcalicut5457
    @adwaithcalicut5457 7 лет назад

    Nice

  • @paraskumar4165
    @paraskumar4165 6 лет назад

    bhut bdhiya