C arguments 📧

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

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

  • @BroCodez
    @BroCodez  3 года назад +23

    #include
    void birthday(char x[], int y)
    {
    printf("
    Happy birthday dear %s!", x);
    printf("
    You are %d years old!", y);
    }
    int main()
    {
    char name[] = "Bro";
    int age = 21;
    birthday(name, age);
    return 0;
    }

  • @Sasha-xg6xy
    @Sasha-xg6xy 2 года назад +43

    I watched tens of other videos of famous bloggers and took Harvard cs50 course and could not figure out what argument in function was. This videos made my day and finally I'm one step closer in C. Thanks Bro!:)

    • @sumnerbrent
      @sumnerbrent 2 года назад +4

      Dude, absolutley! I've been running over CS50 lecture 1 over and over to get this bit. But now finally here is what I needed! Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • @codypreston5274
      @codypreston5274 Год назад +2

      @@sumnerbrent yeah unfortunately cs50 doesn't explain a lot of things well, you basically HAVE to turn to other resources to piece it all together. this channel is the best I've found and not making things even more complex, but rather simple and easy to understand. where's the donate button? lol

    • @minuctruong7477
      @minuctruong7477 11 месяцев назад +1

      I don't take that course but I am reading the book Programming & Design Logic. That's a great book however for a person who is slow like me, this video, this youtube channel is very helpful

  • @esimeemoemmanuel8943
    @esimeemoemmanuel8943 2 года назад +10

    This is the best explanation I've ever seen of arguments and functions(I'm new to C).
    Well explained, especially with the analogy you gave
    thanks a lot

  • @codypreston5274
    @codypreston5274 Год назад +6

    BRO your videos are amazing! Yours is the first channel I've found that actually explains programming well. Every other channel seems to explain things as if the viewer already understands them, if that makes sense. when watching your video, I didn't have to google 30 different words to make sense of it all, you explained it as clearly as possible without me having to know every programming term under the sun. thank you!!!!!!!!!!!!

  • @Omsingh-pc5db
    @Omsingh-pc5db 7 месяцев назад +1

    if someone is wondering, using fgets after using a scanf somewhere in your code, creates an issue and you won't be able to get a string input. so you can add a '
    ' after the identifier like for e.g.:
    scanf("%d
    ", age);
    this also creates other issues so i'd recommend using fgets before scanf always.
    this is one of the issues of writing code in older languages like C.

  • @krlo5574
    @krlo5574 10 месяцев назад +2

    I'm torn between feeling dumb or disappointed on my instructor😅, didn't know it was that easy to understand. Keep up the great job good Sir 👍

  • @clinton6087
    @clinton6087 Год назад +2

    Thank you for doing this. It's down to earth and easy to understand. I'm taking a c# master class and sometimes get lost in the jargon

  • @Aguacaton-Volador
    @Aguacaton-Volador 11 месяцев назад

    Thanks for your videos.. With this one of the whole series, is the first time that I feel dumb... I hope that the next one bring me some lights!

  • @kwadwoomariboateng9522
    @kwadwoomariboateng9522 Год назад +1

    Wow. This is the simplest explanation I have ever come across

  • @provokator-provocateur7603
    @provokator-provocateur7603 3 года назад +5

    Go bro! This is awesome!

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

    برو انت الافضل على مدى السنين

  • @damonmlinaric9254
    @damonmlinaric9254 4 месяца назад

    man thanks so much i think im finally starting to understand arguments a little now and can continue with my course

  • @Ikarus_Riding
    @Ikarus_Riding 2 года назад +7

    So easy explained on youtube yet at university the Einsteins fail to explain baisc stuff...

    • @codypreston5274
      @codypreston5274 Год назад +5

      that's because they understand it so well, they cant even imagine how little we understand it in the beginning. ive noticed it a lot, they teach like you already know 50% when in reality most students learning programming for the first time know 1%

    • @JeersNX
      @JeersNX Год назад +2

      It's cuz we think(we means the people who are smarter on the topic), that everybody understands it as well as we.... Some people can shorten that.

  • @bower19942
    @bower19942 2 года назад +5

    May I suggest that you open a members subscription for your channel? I think you deserve to get some love/support from the community, your work is amazing and everything is free... being a member would only help you but it wouldn't be a barrier for the content.

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

    so how would you pass a value into main?

  • @solveigs77
    @solveigs77 10 месяцев назад

    Perfect! Many Thanx!!! 🎉

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

    hey, in my course we always do this by calling the functions in the main function, why does it work to pass arguments like these,without a main?

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

    really helpful, thanks a lot

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

    NICE VID

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

    Sir Im getting an error
    It gives the following msg in VSCode:
    The ampersand (&) character is not allowed. The & operator is reserved for future
    use; wrap an ampersand in double quotation marks ("&") to pass it as part of a
    string.
    At line:1 char:98
    + ... Files\" ; if ($?) { gcc Arguments&Parameters.c -o Arguments&Paramete ...
    + ~
    The ampersand (&) character is not allowed. The & operator is reserved for future
    use; wrap an ampersand in double quotation marks ("&") to pass it as part of a
    string.
    At line:1 char:135
    + ... rameters.c -o Arguments&Parameters } ; if ($?) { .\Arguments&Paramete ...
    + ~
    The ampersand (&) character is not allowed. The & operator is reserved for future
    use; wrap an ampersand in double quotation marks ("&") to pass it as part of a
    string.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordExcept
    ion
    + FullyQualifiedErrorId : AmpersandNotAllowed
    Pls Help

  • @user-ace96plays
    @user-ace96plays 7 месяцев назад +1

    DONE❤

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

    thanks bro :)

  • @mccauleybacalla2228
    @mccauleybacalla2228 5 месяцев назад

    damn this is good

  • @sypham3075
    @sypham3075 2 месяца назад

    I think bro is 21 years old

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

    ay uhh whats going on people 😎

  • @hydrochlorideDefence
    @hydrochlorideDefence Месяц назад

  • @The_Mad-Ramx
    @The_Mad-Ramx 9 месяцев назад

    dudes

  • @li-lunarink
    @li-lunarink 8 месяцев назад

    bro code with neovim