C data types 📊

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 มิ.ย. 2024
  • C data types tutorial example explained
    #C #data #types
    char a = 'C'; // single character %c
    char b[] = "Bro"; // array of characters %s
    float c = 3.141592; // 4 bytes (32 bits of precision) 6 - 7 digits %f
    double d = 3.141592653589793; // 8 bytes (64 bits of precision) 15 - 16 digits %lf
    bool e = true; // 1 byte (true or false) %d
    char f = 120; // 1 byte (-128 to +127) %d or %c
    unsigned char g = 255; // 1 byte (0 to +255) %d or %c
    short h = 32767; // 2 bytes (−32,768 to +32,767) %d
    unsigned short i = 65535; // 2 bytes (0 to +65,535) %d
    int j = 2147483647; // 4 bytes (-2,147,483,648 to +2,147,483,647) %d
    unsigned int k = 4294967295; // 4 bytes (0 to +4,294,967,295) %u
    long long int l = 9223372036854775807; // 8 bytes (-9 quintillion to +9 quintillion) %lld
    unsigned long long int m = 18446744073709551615U; // 8 bytes (0 to +18 quintillion) %llu
    printf("%c
    ", a); // char
    printf("%s
    ", b); // character array
    printf("%f
    ", c); // float
    printf("%lf
    ", d); // double
    printf("%d
    ", e); // bool
    printf("%d
    ", f); // char as numeric value
    printf("%d
    ", g); // unsigned char as numeric value
    printf("%d
    ", h); // short
    printf("%d
    ", i); // unsigned short
    printf("%d
    ", j); // int
    printf("%u
    ", k); // unsigned int
    printf("%lld
    ", l); // long long int
    printf("%llu
    ", m); // unsigned long long int
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 71

  • @BroCodez
    @BroCodez  2 ปีที่แล้ว +50

    #include
    #include
    int main(){
    char a = 'C'; // single character %c
    char b[] = "Bro"; // array of characters %s
    float c = 3.141592; // 4 bytes (32 bits of precision) 6 - 7 digits %f
    double d = 3.141592653589793; // 8 bytes (64 bits of precision) 15 - 16 digits %lf
    bool e = true; // 1 byte (true or false) %d

    char f = 120; // 1 byte (-128 to +127) %d or %c
    unsigned char g = 255; // 1 byte (0 to +255) %d or %c
    short h = 32767; // 2 bytes (−32,768 to +32,767) %d
    unsigned short i = 65535; // 2 bytes (0 to +65,535) %d
    int j = 2147483647; // 4 bytes (-2,147,483,648 to +2,147,483,647) %d
    unsigned int k = 4294967295; // 4 bytes (0 to +4,294,967,295) %u
    long long int l = 9223372036854775807; // 8 bytes (-9 quintillion to +9 quintillion) %lld
    unsigned long long int m = 18446744073709551615U; // 8 bytes (0 to +18 quintillion) %llu
    printf("%c
    ", a); // char
    printf("%s
    ", b); // character array
    printf("%f
    ", c); // float
    printf("%lf
    ", d); // double
    printf("%d
    ", e); // bool
    printf("%d
    ", f); // char as numeric value
    printf("%d
    ", g); // unsigned char as numeric value
    printf("%d
    ", h); // short
    printf("%d
    ", i); // unsigned short
    printf("%d
    ", j); // int
    printf("%u
    ", k); // unsigned int
    printf("%lld
    ", l); // long long int
    printf("%llu
    ", m); // unsigned long long int
    return 0;
    }

    • @sarwarriyaz
      @sarwarriyaz 11 วันที่ผ่านมา

      bro i cant copy this for notes

  • @vrixax1640
    @vrixax1640 2 ปีที่แล้ว +4

    youre the best i want to start game designing but i didnt find any free tutorials so thank you soo much

  • @HadesTimer
    @HadesTimer 2 ปีที่แล้ว +3

    Welcome back Bro. Thanks for another great video.

  • @chadmurray9506
    @chadmurray9506 ปีที่แล้ว +3

    brother you content is my new go to source for information on any coding questions i have, as a newbie they really help out a "long long int" haha

  • @jeedhy
    @jeedhy ปีที่แล้ว +3

    Wow! This is impressive, you covered a lot with explicit explanation within few mins...Thank you sir.

  • @sanskarsongara2592
    @sanskarsongara2592 2 ปีที่แล้ว +8

    Aye you're back, welcome bro

  • @annoyingprecision2487
    @annoyingprecision2487 ปีที่แล้ว +2

    Concise and comprehensive explanation. Thanks a ton.

  • @GOLD33N13
    @GOLD33N13 ปีที่แล้ว

    Dude this vídeo is just amazing, thanks!!!

  • @nizarouertani1315
    @nizarouertani1315 2 ปีที่แล้ว +10

    C is actually my favorite programming language

    • @shiva.sareddy
      @shiva.sareddy 7 หลายเดือนก่อน

      Do you Know Who Developed C.

    • @ichillingi
      @ichillingi 2 หลายเดือนก่อน +1

      @@shiva.sareddy definitely a couple of goated nerds

    • @shiva.sareddy
      @shiva.sareddy 2 หลายเดือนก่อน

      @@ichillingi Woof..😅

    • @michaelp_c
      @michaelp_c 2 หลายเดือนก่อน

      ​@@shiva.sareddy The guys who made Unix I think

    • @user-ace96plays
      @user-ace96plays หลายเดือนก่อน

      You might not heard about. py😂

  • @smau6889
    @smau6889 2 ปีที่แล้ว

    Yis pls, more C stuff. Thank you very much. Good Stuff C is.

  • @tanmoymridha5002
    @tanmoymridha5002 ปีที่แล้ว

    Love it, thanks for the video.😍😍

  • @spartanranger
    @spartanranger 2 ปีที่แล้ว

    Thanks for the video Bro.

  • @mohammedismail8101
    @mohammedismail8101 ปีที่แล้ว

    Amazing explanation

  • @racso411
    @racso411 ปีที่แล้ว

    You're such a legend!!

  • @rocky1722
    @rocky1722 2 ปีที่แล้ว +1

    Finally bro back to form

  • @amr.h8748
    @amr.h8748 6 หลายเดือนก่อน

    Mr Bro thanks for your time ,I just wanna told that you have a good explanation way m

  • @MultiDerFan
    @MultiDerFan 7 หลายเดือนก่อน

    Preciate you bro

  • @leftlord
    @leftlord ปีที่แล้ว +1

    thank youuuu

  • @CuongVu-kg9qo
    @CuongVu-kg9qo 2 ปีที่แล้ว

    Welcome back bro

  • @MEHEDIHASAN-kx6ok
    @MEHEDIHASAN-kx6ok 2 ปีที่แล้ว +1

    welcome back!!!

  • @stanhunter7367
    @stanhunter7367 2 ปีที่แล้ว

    nice!

  • @user-fj6he1zz3s
    @user-fj6he1zz3s 8 หลายเดือนก่อน

    the video is helpful, but I need the link to the last video please ❤

  • @_txt_7398
    @_txt_7398 ปีที่แล้ว

    Thank you ✅

  • @DuckDuckGoose-sg2sm
    @DuckDuckGoose-sg2sm 4 หลายเดือนก่อน

    thanks man

  • @MerryMerry632
    @MerryMerry632 8 หลายเดือนก่อน

    Thank you Bro :)

  • @MrRamil797
    @MrRamil797 2 ปีที่แล้ว

    Bro, you forgot to add this to playlist

  • @42kualasaleem
    @42kualasaleem 11 หลายเดือนก่อน

    long long data type, ensures that it can accommodate the full range of memory addresses on the target system.

  • @thiemhoang3015
    @thiemhoang3015 2 ปีที่แล้ว

    yehh love you bro :3

  • @karimhany7190
    @karimhany7190 ปีที่แล้ว

    Thank you.

  • @Moboo
    @Moboo 4 หลายเดือนก่อน

    wallah I love you bro

  • @adityakadam2817
    @adityakadam2817 2 ปีที่แล้ว

    you are awesome

  • @Ghrkriiewii9180
    @Ghrkriiewii9180 2 ปีที่แล้ว

    YES C TUTORIAL

  • @andreaspatounis5674
    @andreaspatounis5674 2 ปีที่แล้ว

    chars can store every letter, symbol, number(0-9) and one char = 1 byte , one bool = 1 byte then why should we use bools

    • @abocwsg2328
      @abocwsg2328 ปีที่แล้ว +1

      They make you look smarter

  • @DimiEG
    @DimiEG 6 หลายเดือนก่อน

    Thanks Bro

  • @damin1916
    @damin1916 2 ปีที่แล้ว +1

    where would i be without bro code

  • @mohamed_awes
    @mohamed_awes 2 ปีที่แล้ว

    good

  • @ismu123_aka_best_player_of_mc
    @ismu123_aka_best_player_of_mc หลายเดือนก่อน

    when i type string %s for bool its showing ☺

  • @madyardwn
    @madyardwn 2 ปีที่แล้ว +1

    I will start from c :)

  • @jezwalmsley8422
    @jezwalmsley8422 2 ปีที่แล้ว

    Can you do objC?

    • @BroCodez
      @BroCodez  2 ปีที่แล้ว

      maybe after C++, I'll likely have you guys vote on future topics

    • @aditya_asundi
      @aditya_asundi 2 ปีที่แล้ว

      @@BroCodez isn't objC dead? wasn't it replaced by swift?

  • @user-ace96plays
    @user-ace96plays หลายเดือนก่อน

    DONE❤

  • @ethanalkout949
    @ethanalkout949 2 ปีที่แล้ว

    I miss my bro 🙃

  • @thedivyanshbhati
    @thedivyanshbhati ปีที่แล้ว +1

    Oh. So. Pro.

  • @adityarajsrivastava6580
    @adityarajsrivastava6580 2 ปีที่แล้ว

    Oof, it feels like I am memorizing 'double' variables compared to java.

  • @draido-dev
    @draido-dev ปีที่แล้ว +1

    long long ago; /* in a galaxy far far away */

  • @user-mc9uv7ij7x
    @user-mc9uv7ij7x ปีที่แล้ว

    ❤❤❤❤❤❤❤

  • @itCODE
    @itCODE 2 ปีที่แล้ว

    Всем привет!)

  • @Programeris
    @Programeris หลายเดือนก่อน

    i think it makes sense ;)

  • @alexandrugadja2308
    @alexandrugadja2308 7 หลายเดือนก่อน

    I like short shorts

  • @ruhruhruhruhruheisjsij
    @ruhruhruhruhruheisjsij 11 หลายเดือนก่อน

    that is a LOT of data types... geeze. unsigned signed int long short long long double signed short %.15llfdddduuuu

  • @arpanshah355
    @arpanshah355 8 หลายเดือนก่อน

    i like short shorts

  • @Cipher_16
    @Cipher_16 24 วันที่ผ่านมา

    (5:49 A.M)
    1 JUNE, 2024

  • @Grab-Deals
    @Grab-Deals 2 หลายเดือนก่อน

    Hello

  • @redoanahmed3921
    @redoanahmed3921 6 หลายเดือนก่อน

    Ass savior bro ❤

  • @Grab-Deals
    @Grab-Deals 2 หลายเดือนก่อน

    Why does it seem woman don't like c code ?

  • @vishnuvardhan2128
    @vishnuvardhan2128 2 ปีที่แล้ว

    Broooooo why why u r tooooo latee ....plz post it fast

    • @BroCodez
      @BroCodez  2 ปีที่แล้ว +1

      I was burnt out -_-
      I feel better now tho

    • @aditya_asundi
      @aditya_asundi 2 ปีที่แล้ว +1

      He's been working for 2 years, he deserved a break.

    • @joyson7
      @joyson7 2 ปีที่แล้ว

      Everyone needs a break once in a while

  • @NK_Kolkata
    @NK_Kolkata 2 ปีที่แล้ว

    Bruh!

  • @kapebreak
    @kapebreak ปีที่แล้ว

    THIS IS MY COMMENT THANK YOU BRO

  • @abocwsg2328
    @abocwsg2328 ปีที่แล้ว

    You can still use booleans without stdbool.h, just type _Bool instead of bool

  • @26yemtitya62
    @26yemtitya62 6 หลายเดือนก่อน

    Hello Bro Code, I tried to code this to get user input one by one but when I input the name of the brand, it shows everything and skips (Shipping time:, Price:). Do you know what is my error ? please?
    #include
    int main (){

    int name;
    float time;
    double price;

    // Input
    printf ("Brand of water: ");
    scanf ("%d", &name);
    printf ("
    Shipping time: ");
    scanf ("%f", &time);
    printf ("
    Price: ");
    scanf ("%lf", &price);

    // printing
    printf ("
    Brand of water = %d", name);
    printf ("
    Shipping time = %f", time);
    printf ("
    Price = %lf", price);

    return 0;
    }