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

Поділитися
Вставка
  • Опубліковано 1 жов 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.

  • @omprakashpagadala5545
    @omprakashpagadala5545 10 років тому +15

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

  • @jeandavidbeauboeuf3048
    @jeandavidbeauboeuf3048 3 роки тому +1

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

  • @Xalgurom
    @Xalgurom 7 років тому +5

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

  • @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.

  • @_PrajaktaMokale
    @_PrajaktaMokale 3 роки тому +1

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

  • @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.

  • @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

  • @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

  • @brendananderson9102
    @brendananderson9102 3 роки тому +1

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

  • @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.

  • @nirajabcd
    @nirajabcd 10 років тому +1

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

  • @zenjon7892
    @zenjon7892 7 років тому +1

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

  • @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?

  • @MsPAL2010
    @MsPAL2010 9 років тому

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

  • @devbhuva9798
    @devbhuva9798 2 роки тому

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

  • @kebakaonebajaki1018
    @kebakaonebajaki1018 7 років тому +1

    keep up the good work.really helpful!

  • @Travellife8877
    @Travellife8877 7 років тому

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

  • @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

  • @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?!

  • @abdelrahmanhassan8132
    @abdelrahmanhassan8132 3 роки тому

    great

  • @zeenatsalehtania7144
    @zeenatsalehtania7144 3 роки тому

    Printf("Thnx");

  • @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.

  • @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.

  • @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////

  • @philipuswijaya7240
    @philipuswijaya7240 5 років тому

    Thanks :)

  • @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