Operators in C (Solved Problem 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

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

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

    This is first time ever , I am learning any language in such a depth .
    Ur content is million dollar content sir , 🙏🙏🙏

  • @deepakpatra2011
    @deepakpatra2011 5 ปีที่แล้ว +58

    This channel is so underrated...

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

      I was also hacked once by someone

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

    This channel is a boon for beginners. Thank you for taking this initiative 😇

  • @GoodBoy-bt7kp
    @GoodBoy-bt7kp 6 ปีที่แล้ว +17

    KNOWLEDGE IS SO FUN 2 ACHIEVE HERE.....👏👏👏👏👏

  • @ketanbagade6557
    @ketanbagade6557 5 ปีที่แล้ว +11

    I heartly tq to u sir
    I'm student of bca clg nidashushi Karnataka n i refer ur vedio for study
    n now I won national computation at gadhinglaj

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

      Sir can you tell me how the var value becomes 4?

    • @kwynart6399
      @kwynart6399 5 ปีที่แล้ว +4

      @@kushaldas8496 var=sizeof(i++)
      i is an integer variable, integer has 4bytes so var=4bytes

    • @gayatriprabhune6581
      @gayatriprabhune6581 3 ปีที่แล้ว

      @@kwynart6399 sizeof()operator not operate on any ++ -- operator so your experation wrong

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

      @@gayatriprabhune6581 he did not say it is performed on ++, he said it is performed on i which is correct sizeof(i) returns the size of type of i which is int (4)

  • @shubhammahajan6696
    @shubhammahajan6696 6 ปีที่แล้ว +10

    better video are coming than expectation keep it up

  • @IronMan_2.1
    @IronMan_2.1 4 ปีที่แล้ว +9

    At the time when this channel started uploading videos of C, i was in my 2nd semester and for the first time in my life, I encountered with programming, I wish I had seen this channel's and this great teacher's lectures, I could have done better in that semester and further semesters. Now I am in 7th sem.
    😒
    It's like pehle kyu na mile hum !!!

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

      Same feelings😪

    • @parijatdas
      @parijatdas 4 ปีที่แล้ว

      Same here

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

      Please tell me what should I do to excel in my bca classes. I want to be good at studying and score well. Please give me some tips 🙏

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

    Love love love your way of teaching. God bless you sir❤️

  • @phanindrareddy4885
    @phanindrareddy4885 6 ปีที่แล้ว +9

    We want this only
    Please increase your team strength
    And upload videos more fastly
    Thank u

  • @yashwanthreddy1378
    @yashwanthreddy1378 6 ปีที่แล้ว +4

    excellent. sir upload lectures on a regular basis. very helpful

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

    A) because no increment or decrement operation perform inside sizeof function, so i will ramain 5 and its size is 4. therefore ans is 5 4

  • @GoodBoy-bt7kp
    @GoodBoy-bt7kp 6 ปีที่แล้ว +18

    Simply I++ or I-- is not performed inside the "sizeof" operator....

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

    some people dislike this video cuz they thought it was the download buttom,
    May God bless your works Sir

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

    I think the sir who is teaching now is different from tge sir who teaches digital and ana analogue electronics. Is it true? Please clarify.

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

    Wow like a suspense movie 🎬 .. well played 👌

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

    I finished all the videos on c and data structures.... Please sir uplaod algorithms

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

    plz upload more videos soon...

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

    Sir you are...just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just just.......... awesome sirrrr..........😊

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

      2

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

    5 4 is answer

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

    great question

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

    Where i can get these type of questions for practice sir.

  • @shantanumundle7473
    @shantanumundle7473 4 ปีที่แล้ว

    bow down in respect

  • @ElifArslan-l9g
    @ElifArslan-l9g 3 ปีที่แล้ว

    thank u

  • @shamimreza5088
    @shamimreza5088 3 ปีที่แล้ว

    excellent

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

    Answer is 5 and 4

  • @ritikshrivastava9442
    @ritikshrivastava9442 4 ปีที่แล้ว

    I have a question you said c11 is the latest version and you're providing facts from c99 ?

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

    Sir, can you pls tell me how the var value becomes 4 ?

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

      because the sizeof integer is 4 bytes means var = 4 in the c99 standard if the type is not a variable length array inside the sizeof(..) is not evaluated, so the result is 5 4

    • @gorigepranaykumar4248
      @gorigepranaykumar4248 5 ปีที่แล้ว

      Thank u hicham

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

    the answer is 54

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

    Sir, i understand how the 5 is getting printed but i don't understand how the 4 is getting printed.
    It would be very kind of you if you explain this to me.

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

      Can i explain

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

      @@rsingh6216 ya

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

      @@hemalakshmi9044 sizeof() returns the size of the variable , since the variable is integer therefore it will return 4.

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

      @@rsingh6216 OK tq

    • @01Oddone
      @01Oddone 3 ปีที่แล้ว

      @@rsingh6216 Returns which Varaiable is it (var)?
      And, How it is an Integer?
      Plz..exp..
      Then inside.. size of (i++).
      i++ only contains how it return( var)..?

  • @ankitraina4047
    @ankitraina4047 4 ปีที่แล้ว

    amazing!

  • @Fun_Jet
    @Fun_Jet 4 ปีที่แล้ว

    The best👍👍👍👍

  • @SaiKiran-me8qj
    @SaiKiran-me8qj 5 ปีที่แล้ว

    Super sir

  • @Fun_Jet
    @Fun_Jet 4 ปีที่แล้ว

    Legend sir

  • @manukumarichoudhary8199
    @manukumarichoudhary8199 5 ปีที่แล้ว

    Thank you sir for the video. But in turbo c,output :5 2.Plz reply why it so.

    • @shaikjohnybasha2689
      @shaikjohnybasha2689 5 ปีที่แล้ว +4

      It's compiler dependent... If you are using 16 bit compiler, you will get 5 2... If you use 32 bit, then the answer will be 5 4...

    • @fardousalam1594
      @fardousalam1594 4 ปีที่แล้ว

      the size of integer in your Compiler is 2, thats why you get 5 2. hope you understand.

    • @techmad8204
      @techmad8204 3 ปีที่แล้ว

      @@shaikjohnybasha2689 16 bit? or u mean 64 bit i dont think anyone uses 16bits anymore

  • @jeevajeevan1346
    @jeevajeevan1346 4 ปีที่แล้ว

    TRUE

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

    5 4

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

    what if it was ++i ??

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

      ++a Pre - increment operator
      a++ post -increment operator ....
      - - a pre - decrement operator
      a - - post - decrement operater.....

    • @techmad8204
      @techmad8204 3 ปีที่แล้ว

      Even then the sizeof prints 2 or 4 according to specs of machine since ++i is still an integer and integers are constant to your machine.

  • @pritamkrdas8696
    @pritamkrdas8696 4 ปีที่แล้ว

    How 4 has printed?

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

      Because integer is 4 bytes sizeof(i++) which is integar is 4....

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

    only i++ , ++i,i--,--i are not evaluated within sizeof() ???

    • @kushaldas8496
      @kushaldas8496 5 ปีที่แล้ว

      Can you tell me how the var value becomes 4..pls

    • @techmad8204
      @techmad8204 3 ปีที่แล้ว

      No, any data type which doesnt have varying size. Example, arrays have varying length so arrays are evaluate but i++ is only variable and we know var is either 2 or 4 according to 32 or 64bit computer but either way it's a constant size so sizeof doesn't evaluate what is inside of it if data type is fixed length this is what I understood correct me if I'm wrong.

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

      ​@@kushaldas8496because its size is 4 bytes

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

    sir plz makes videos regular basis 😂

  • @indian3451
    @indian3451 5 ปีที่แล้ว

    You are god to me

  • @raghavendharreddy1579
    @raghavendharreddy1579 5 ปีที่แล้ว

    How you get 4 sir in answer

    • @jesuslanderos.2442
      @jesuslanderos.2442 5 ปีที่แล้ว

      It says, in the very question, that the size of integer is 4, so, 5=4, 6=4, 7=4 and so on and since var equals to the size of 6, which is 4, the ouput for var is 4.

    • @sandhyachowdhary2511
      @sandhyachowdhary2511 4 ปีที่แล้ว

      The size of int in your system is 4byted so .it can vary from system to system

  • @oggy107
    @oggy107 3 ปีที่แล้ว

    may the ancient astronauts bless you

  • @Official-tk3nc
    @Official-tk3nc 4 ปีที่แล้ว +1

    Guys they are providing everything for free and some idots dislikes these types of videos. I think they need mental treatment

  • @gayatriprabhune6581
    @gayatriprabhune6581 3 ปีที่แล้ว

    false

  • @FestivalFlare
    @FestivalFlare 4 ปีที่แล้ว

    Thanks sir

  • @true4189
    @true4189 4 ปีที่แล้ว

    Thank u