C_11 Data Types in C - Part 2 | Programming in C

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

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

  • @vvi714
    @vvi714 4 года назад +88

    Now that i finally am understanding C 😅 All thanks to you mam 💜

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

      i don't understand how do you understand

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

      @@superclashyt4 coz he/she is senior to u

  • @thandosilinda2590
    @thandosilinda2590 Год назад +16

    Thank you for the c programming playlist. I am currently doing a coding boot camp and I really needed this! Love from South Africa❤

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

      Aaah from s.africa am from Kenya can we make friends

  • @ChandanaChandu-th8xv
    @ChandanaChandu-th8xv Год назад +14

    Hello mam..!!
    Hatsoff to your patience and hardwork mam
    Its very helpful for poor people
    LIKE ME....!
    I'm currently doing a 1st semester bca..
    Thanks a lot ma
    Your great lecture 💜

  • @debojitacharjee
    @debojitacharjee 3 года назад +14

    *THE RANGE OF SIGNED INTEGER IS LESS BECAUSE IN BINARY, TO REPRESENT NEGATIVE VALUES THE BINARY CODE IS INVERSELY REPRESENTED* - Example, 101 can be represented as a negative value as 010.

  • @aryabharti5741
    @aryabharti5741 2 года назад +6

    I watched your videos for the first time today and became your fan, You are such a cute and appropriate educator, made the concept very clear in a short time.

  • @roshanjalan01
    @roshanjalan01 4 года назад +9

    Jai shree krishna
    Mam apka bahut bahut dhanyawaad itna acha se samjhane k liye .

  • @shorttvideo6049
    @shorttvideo6049 3 года назад +6

    Thank you mam for your hard work,
    Coaching karne ke liye jin talented students ke pass paise nhi hai, unke liye, ye video bahot hi use full hai,

  • @rambabusravanthi4560
    @rambabusravanthi4560 6 месяцев назад +44

    I think im only the person in 2024 wathing ur c programming video in diploma

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

    I'm 1st year computer science and engineering student, ur strategy awesome for learn

  • @vamsiop1875
    @vamsiop1875 2 года назад +8

    Range can be easily calculated from its size
    Example: if its size is 1 byte 1^8
    2 byte 2^8
    3 byte 3^8
    4 byte 4^8
    And according to sign (means signed or unsigned)you can classify its range

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

      How can u explain

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

      Bcz If i m calculating for 16 bit compiler
      The int will take 2 byte in memory
      So we can calculate range 2^16 that is fine
      But if I m applying same concept on char ..then what
      Char takes 1 byte in memory
      So 1^16 then that is one
      What is means range is one
      ?????? If that is not correct than what should be other method ??

    • @132saadatali6
      @132saadatali6 Год назад

      i think you mean to do it like: 2^(size in bytes * 8) for unsigned int, float and most data types, 2^(size in bytes * 8)/2 for signed int and float, and the positive end of the range will have one less than the calculated value, so for an int on a 16bit machine that would be, 2^(2 * 8)/2 = 2^16/2 = 32,768, and hence the range is -32,768 to 32,767, the positive end is reduced by 1

  • @mughatoamugha9029
    @mughatoamugha9029 3 года назад +9

    Thank you so much for your immense support and love for the students/learners

  • @pratheebaprakash4964
    @pratheebaprakash4964 3 года назад +4

    Thankyou mam... Love from Tamilnadu ♥️

  • @rohanpawar1361
    @rohanpawar1361 3 года назад +5

    Thank you so much mam bcoz of u I am learning much more than my college syllabus ..love u😍😍🤗

  • @vinaypratap620
    @vinaypratap620 3 года назад +3

    Informative and confusion video 🤔

  • @HamnaLatheef
    @HamnaLatheef 15 дней назад +1

    18:34 32769. I Don't understand how you get that value?

  • @ashad8542
    @ashad8542 3 года назад +3

    extra ordinary level of knowledge... unbeliveable knowledge...

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

    It is giving postive value for both %d and %u

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

    Great teaching mam ,you teach far better than institute from where I am learning c for embedded system.

  • @Yogeshwar-d3n
    @Yogeshwar-d3n 2 года назад +13

    1byte=8bits
    So 2bytes=2^8 bits
    2^8=256
    Signed range(+ and-)/ -128 to +127 (including zero)
    Unsigned range(+)/ 0 to +256
    Similarly for 4 bytes also
    4bytes= 2^(8*2)
    3^(8*2)=65536
    Again same story

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

    The lovely smiles you give make this c language easy and interesting to learn....

  • @aparnadubey1134
    @aparnadubey1134 2 года назад +3

    Thank you ma'am for providing such a wonderful video with better explanation

  • @46_anuragjaiswal9
    @46_anuragjaiswal9 3 года назад +48

    How it comes -32770 in unsigned integer bcoz the limit is till -32768 to 32767, and you have put 32766 in the eg. Of 32770. Plez clear this doubt mam

  • @breakinggood-r2v
    @breakinggood-r2v 3 года назад +1

    I watched 3 times this video the. I got it .tq

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

    thanks a lot
    wish u all success and happiness in life

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

    best c program teacher you are maam .

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

    THANKS MAAM... LOVE FROM BANGLADESH

  • @gokuls165
    @gokuls165 3 года назад +8

    How will the long int data type will take 4 bytes if the compiler size itself is 2 bytes???

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

      Because we need bigger range of values

  • @shrutisaxena7998
    @shrutisaxena7998 3 года назад +2

    A big thanks Ma'am ♥️

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

    Love u mam u teach so well that i am able to understand c language.. ❤️❤️

  • @M.pavaniM.pavani-d1c
    @M.pavaniM.pavani-d1c 3 месяца назад

    Thanks for your c class mam 😊🤝

  • @jacksparrow4033
    @jacksparrow4033 4 года назад +7

    So if we want to store 65536 in an int variable will it store 0 or will it show error?

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

      Yes it will store 0 because we assume 0 is in a place of 65536

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

    Mam I can surely say You are very much inspired by Alakh sir (PW)

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

    Madam it gives positive value in signed integer while out of range

  • @SaadKhan-wp9sw
    @SaadKhan-wp9sw 2 года назад +3

    Your videos are really helpful. Could you please suggest any book to read along, your pdf notes as a refresher. Also if you could suggest any book from where we can practice and write code for the programs. Danke shöne/Thank you very mcuh :)

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

    You are 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻mam❤️❤️❤️❤️
    You are too perfect teacher 🙏🏻 mam

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

    Thank you for very good tutorial. :)

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 года назад +1

    Sukriya mam 🔥🙏🔥

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

    Your lecture is very good

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

    Thank you mam for explaining this complex topics into simpler terms and please provide notes it's a request

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

    Thank you so much 🙏🙏

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

    Please explain 17:42. We are not understand.🙏🙏

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

    Niceee explanation mam 🌝😃

  • @user-uu6xe5rx5m
    @user-uu6xe5rx5m 3 года назад +2

    Mam when you are writing code in c please use system

  • @rosonerri-faithful
    @rosonerri-faithful 3 года назад +7

    #include
    #include
    int main ()
    {
    int a = 32768;
    printf ("%d", a);
    getch ();
    return 0;
    }
    Mam it's not showing the answer you described..showing 32768 only...instead of -32768

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

      Yes I also got the same output

    • @beastmorph599
      @beastmorph599 3 года назад +6

      That is because in you computers integer have 4 bytes like me
      You can try short int it have 2 bytes

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

      @@beastmorph599 yeah

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

      @@beastmorph599 yupp you are write

    • @Ujjwalverma-q1p
      @Ujjwalverma-q1p 4 месяца назад

      May be bcoz we use 64 bit os and int range is different for every bit🤔

  • @yamini436
    @yamini436 3 года назад +2

    Thank you so much mam! You really cleared my concepts 🥳😊

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

    Output is given by compiler when we mention format specifier as %hd mam

  • @PalyamYashwanthsai
    @PalyamYashwanthsai 6 месяцев назад +2

    Madam iam coding what you said in 10.00 minutes,it is showing how much I am writing in a.

  • @jangamankitha8143
    @jangamankitha8143 2 года назад +2

    mam the output we are getting for that program is 32768 only mam not changing the value for signed int.....can u please solve

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

    #include
    int main ()
    {
    unsigned int a=-32767;
    printf ("%u", a) ;
    return 0;
    }
    Output =4294934529 on one compiler

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

    Your lecture is too good 🙂

  • @SahasraMuthyam
    @SahasraMuthyam 6 месяцев назад +1

    Mam in the last example of -32767
    I have got %d was correct and %u was something bigger number why it is so?

  • @radhikak7655
    @radhikak7655 Год назад +3

    Hii mam you can explain telugu also mam please🙏🙏

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

    really waiting for your video🥰

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

    Please tell what is the purpose of using getch() ?

  • @user-techmrshah
    @user-techmrshah 2 года назад +1

    Please let me know where do i practice all that stuff?

  • @subramanyammulagala2085
    @subramanyammulagala2085 3 года назад +2

    mam, is this range is only for 16 bit?

  • @slw287r3
    @slw287r3 3 года назад +2

    mam i'm using online c compiler in that its showing there is no such liberary for #include. why it's showing like that mam please help!!

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

      I have the same problem and I found out why
      Because we're using linux
      Conio.H is specific for windows
      Most programmers don't use it

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

      @@beastmorph599 right 👍

  • @factvedas
    @factvedas 4 года назад +3

    1st viewer 🎉

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

    Thanks mam very very helpful

  • @priyankarakshit2383
    @priyankarakshit2383 2 года назад +2

    Mam I'm storing 32768 using %d nd the output is 32768 how ??🙄 Pls answer

    • @javierv.5242
      @javierv.5242 2 года назад +2

      Her examples are for 8-bit but if you check your system, it might be 16-bit. int may be 32 bits in your computer. 32768 will be ok for 32 bits (4 Bytes). You need a larger number to overflow 4 Bytes.

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

    Nice lecture mam

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

    i go for 35000 with %u and %d but both outputs are 35000 only.. Is it depends on laptop to laptop..

  • @prateekrao3093
    @prateekrao3093 3 года назад +3

    Mam after putting a=32768. I am getting the same value in positive i.e, 32768 mam there is no change in sign so what should I do now mam

    • @PujaGupta-bs6vo
      @PujaGupta-bs6vo 2 года назад +1

      I am also getting same value..

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

      Because the bits of your computer is large

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

      I had also same problem but just now I did it with Turbo C++ and everything is fine

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

      @@asim9448 okk okk

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

      @@asim9448 ok I will try it in turbo c

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

    good lecture

  • @user-techmrshah
    @user-techmrshah 2 года назад +1

    Where do i do that programming....? I mean ...which application can i use to do all that stuff ?

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

    Mam PLZZ suggest software/app for practice coding...

  • @nikhithavoonna5133
    @nikhithavoonna5133 3 года назад +3

    Mam I had tried this sample program of int a=32768 but the output is resulting it shows an error i.e. function should be a return value

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

    Thank you ma'am.

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

    From Bangladesh 🥰

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

    You are great mam 😊

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

    I am getting below error after running program showed at 11:21
    if ($?) { gcc First.c -o First } ; if ($?) { .\First }
    First.c: In function 'main':
    First.c:9:9: warning: implicit declaration of function 'Clrscr' [-Wimplicit-function-declaration]
    Clrscr();
    ^~~~~~
    C:\Users\**\AppData\Local\Temp\ccSzwhIK.o:First.c:(.text+0x17): undefined reference to `Clrscr'
    collect2.exe: error: ld returned 1 exit status

    • @rocket6451
      @rocket6451 6 месяцев назад

      soo did u get the reason it showed error for clearscreen ?????

  • @Nikhithasai.P-045
    @Nikhithasai.P-045 Месяц назад

    Mam can you explain why you wrote getch()

  • @AmanYadav-fe1tk
    @AmanYadav-fe1tk 4 года назад

    Thanks 😊 mem

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

    Thank u mam. Mam please do video on java from scratch to advance. It would be helpful

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

    Love you mam❤️❤️❤️❤️

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

    Best mam🙏

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

    Maam in print f we should enter the integer value....not percentage d or someting and y r u not using scan f link....

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

    Thanks my teacher how can get links of this

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

    Thank uu mam

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

    Thank you mam

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

    Mam,when we are using void main(),it is showing error .But when we use int main() the output is coming.

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

      What error you are encountering with void main()

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

      @@avarulprasad05 The output is not coming..

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

      @@amrithashanmugam8059 I have tried with void main it is coming

  • @SrinivasaraoYamarthi
    @SrinivasaraoYamarthi 6 месяцев назад

    Mam please give us notes it will help us a lot

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

    Thanks

  • @Mukesh_vlogs851
    @Mukesh_vlogs851 8 месяцев назад

    mam you taught for 16 bit compiler what about the 64 bit compiler please reply with a video mam

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

    We have to use int main for void main

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

    Madam can u plz provide the Notes
    And also plz teach me in telugu language also 🙏

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

    Can anyone give answer plz? what happens if we take a=65537 in unsigned int and with 2bytes storage,taking "%u" as a format specifier? The range has been crossed then what happens?

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

    mam please upload lectures on java also and also upload interview questions on C programming on your RUclips channel please

  • @MraghunathMraghunath-rv7ob
    @MraghunathMraghunath-rv7ob 10 месяцев назад

    Hlo mam #include is showing error plzz reply me😊😢

  • @OLDACCOUNT-w9i
    @OLDACCOUNT-w9i Месяц назад

    can we get notes of these lectures?

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

    Super

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

    mam i m using window 10 64bit laptop. and i m getting all the same values in output as i m providing in input. Nothing is happening like u exaplaining

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

    thnq mam...

  • @ASHISHKUMAR-zb8rw
    @ASHISHKUMAR-zb8rw 4 года назад

    THanks ma'am✔️✔️✍️

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

    Mam notes kaha milenge ??

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

    Mam please give us notes to write please mam your tell amazing but small request we need notes about C programming

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

    thanku mam......can u provide notes to us?

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

    How we deside given int is sign or unsign

  • @EOT-ExploreOfThings
    @EOT-ExploreOfThings Год назад

    suggest me some good online compiler for c??????

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

    Madam please do the videos on java(oops)