Typecasting in C programming | Implicit & Explicit type conversions

Sdílet
Vložit
  • čas přidán 12. 04. 2022
  • 👉Subscribe to our new channel: / @varunainashots
    Typecasting is nothing but the new way of converting a data type of one variable to some other datatype. Typecasting is of two types: Implicit Typecasting and Explicit Typecasting
    ► Programming in C (Complete Playlist):
    • C Programming
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ►Design and Analysis of algorithms (DAA):
    • Design and Analysis of...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Operating System:
    • Operating System (Comp...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Computer Architecture :
    • Computer Organization ...
    ►Graph Theory (Complete Playlist):
    • Graph Theory
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on CZcams: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmashersofficial
    ► Follow us on Threads: www.threads.net/@gate.smashers
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

Komentáře • 93

  • @shalumall8014
    @shalumall8014 Před rokem +3

    Okk sir
    Thank you so much. U r very good teacher.

  • @subhajitghosh4482
    @subhajitghosh4482 Před 11 měsíci +1

    Concept got cleared ❤

  • @Rohan-ww4cw
    @Rohan-ww4cw Před 2 lety

    Thank you so much sir for this video 🙂

  • @SwetaMall2818
    @SwetaMall2818 Před 7 měsíci

    Thank u sir
    Very nice explanation

  • @SnehaBudha-xk6uj
    @SnehaBudha-xk6uj Před 5 měsíci

    superb explanation sir tq

  • @IslamicStories-pt9dm
    @IslamicStories-pt9dm Před 7 měsíci

    Excellent sir

  • @Piyushg19dec
    @Piyushg19dec Před rokem +3

    Happy Teacher's Day sir, 🎉
    aap ka padhane ka tarika bahut hi Gajabb ka hai, bole to ekdum jhakkkaaasss,
    aapse Jo bhi padhta hoon, wo bahut hi achhe se dimag main baith jata hai,
    I am so glad to have you as a virtual mentor 😀,
    Thank you so much Sir ji🙏🙏

  • @mohammadnaseer5413
    @mohammadnaseer5413 Před rokem +1

    Thank you

  • @uzmabutt6570
    @uzmabutt6570 Před 11 měsíci +1

    wh sir you are genious🖤

  • @omkarsawant476
    @omkarsawant476 Před rokem +8

    Excellent..... Sir you just explain it very well in very short time period.....💯💯

  • @zahrakhan8674
    @zahrakhan8674 Před 2 lety +1

    Thank you so much ..💖

  • @Miguel-zp8uw
    @Miguel-zp8uw Před 5 dny

    0:39 start

  • @lakkhishawaa
    @lakkhishawaa Před 5 měsíci

    Thnk u sir thnk u god 🙏😇

  • @ashishtayade047
    @ashishtayade047 Před 10 měsíci

    Thank you sir very nice gide & very nice information implicit & explicit conversion teaching video.👍

  • @pradipatitripathi
    @pradipatitripathi Před rokem

    Thanks sir

  • @swastikdutta2267
    @swastikdutta2267 Před 2 lety +1

    Love you sir bhaiyah infinity times

  • @rishabhgupta9230
    @rishabhgupta9230 Před rokem +1

    Nice sir

  • @abhishek5212
    @abhishek5212 Před 7 měsíci

    thanks sir

  • @daniyalali4819
    @daniyalali4819 Před rokem

    thank you

  • @savitu_kumar
    @savitu_kumar Před 2 lety

    Thanks ❤️❤️❤️❤️

  • @bikramdutta8627
    @bikramdutta8627 Před rokem +1

    Wow, good

  • @user-dt6wx6nz2t
    @user-dt6wx6nz2t Před 2 měsíci

    thanx sir

  • @avijitbiswas4422
    @avijitbiswas4422 Před rokem

    thank you dada,
    from bangladesh.

  • @AmitKumar-gk9wh
    @AmitKumar-gk9wh Před rokem

    Nice ❤️🤗👍

  • @sakshikadnor2815
    @sakshikadnor2815 Před rokem

    Thank🥰u sir

  • @ShivamThakur-rt6js
    @ShivamThakur-rt6js Před 2 lety +28

    For anyone who is confused: Parenthesis ki associativity L to R hoti hai. Actually funda yha precedence kaa hai. Parenthesis ki precedence higher hoti hai typecast se. Type cast bhi operation hai jo ki Urinary type kaa hai. See the Video no. 3 for reference

  • @ginas7918
    @ginas7918 Před rokem

    How to type cast float into boolean?

  • @Eswar.
    @Eswar. Před 2 lety

    I want to start preparation for gate
    Give us a roadmap

  • @sardarjamil5053
    @sardarjamil5053 Před 13 dny

    Hmmm... In example of implicit typecasting you mean that when compiler will add two variables of different memory size it will increase the bit no.s of the smaller variable . Am I right ?

  • @Anuragxbhardwaj
    @Anuragxbhardwaj Před rokem +1

    ❤❤

  • @hadirinceprince4866
    @hadirinceprince4866 Před 6 měsíci

    ❤❤❤❤❤

  • @sachindeswal5697
    @sachindeswal5697 Před měsícem +2

    i have a doubt
    in the last case i.e case 3, 7:34 you said associativity of parenthesis is right to left but it is left to right.
    correct me if I am wrong .
    Thanks for the explanation

  • @Tamanna_K_Hardy
    @Tamanna_K_Hardy Před 2 lety +2

    1st Comment
    Awesome 😎

  • @user-mi4em5bj2t
    @user-mi4em5bj2t Před rokem +4

    7:29 sir ji but paranthesis precedence is higher and associativity is left to right so
    if float c = (float) (a/b);
    so , fistly float will evaluate and then a/b.
    so, the value is 3.33

    • @md.shohrabhossain7036
      @md.shohrabhossain7036 Před rokem +2

      Right

    • @Anushka20037
      @Anushka20037 Před rokem +1

      no run the code and you will know that sir is right

    • @comp_yadnika_kotwal8368
      @comp_yadnika_kotwal8368 Před 10 měsíci +3

      The expression (float)(a / b) does indeed involve parentheses, but it doesn't involve operators with the same precedence. Instead, it's a cast operation (float) applied to the result of the division (a / b). (a/b) is parenthesis but (float) is type operator and no parathesis

  • @shalumall8014
    @shalumall8014 Před rokem +1

    Sir please tell me paranthesis associativity is Right to left or Left to right because in book it is Left to right

  • @Lakshay_HBK
    @Lakshay_HBK Před 2 lety +2

    You Rocks Sir 🔥🔥❤️🎯

    • @Tamanna_K_Hardy
      @Tamanna_K_Hardy Před 2 lety +1

      Star samasher wali id ko kya hua block ho gayi kya 😂😂😂

    • @Eclipso619
      @Eclipso619 Před 2 lety +1

      Original bhi Yahin Rakhenge.......... Duplicate bhi Yahin Rakhenge. 🎭🎯🎭

  • @user-wj2ne4gc3i
    @user-wj2ne4gc3i Před 11 měsíci +6

    I did not understand the associativity part, can someone help me with that? The precedence of both the parentheses is same, but the associativity of parentheses is left to right, so float should be taken into consideration first.

  • @mitedu5523
    @mitedu5523 Před 2 lety

    Love from pakistan sir .. 💐

  • @MohamadSayadiFars
    @MohamadSayadiFars Před 7 měsíci +1

    Could you please put the English subtitle?

  • @murawathayat66
    @murawathayat66 Před 2 lety +1

    Sir I'm from Pakistan
    How to enroll in Computer Instructor courses of your paid course
    Please guide main

  • @tanishachaurakoti7684
    @tanishachaurakoti7684 Před 9 měsíci +1

    sir, UPES dehradun, uttarakhand mein aajao as a cs teacher. pleaseee.... video pause krke bola h beech m value rakhna

  • @neelofark643
    @neelofark643 Před rokem +1

    compiler implicit type casting me data loss kese ni krta agar hum int a = 5.33
    likhngy to a variabl bs 5 hi lega or point k bd ki value compiler discard krdega

    • @gangaKrishnan12
      @gangaKrishnan12 Před rokem

      Ha.. if we use int then it will take integer type so simply it returns 5.0

  • @ushacharwani7731
    @ushacharwani7731 Před 3 měsíci

    Associativity left to right h() ki

  • @aman_jeet
    @aman_jeet Před 3 měsíci

    0:12 meanwhile I am studying it just for my BCA

  • @shibu0170
    @shibu0170 Před rokem +1

    0:38

  • @krishnasatna7528
    @krishnasatna7528 Před měsícem

    1:20

  • @shitalpriya9262
    @shitalpriya9262 Před 2 lety +4

    Sir jb aap pehle btaye hai ki dono ka precedence same ho to left to right hoga associativity to isme case 3 me right to left q kiye hai jbki paranthesis rahne pe left to right association hota hai

    • @ShivamThakur-rt6js
      @ShivamThakur-rt6js Před 2 lety

      Parenthesis ki associativity L to R hi hoti hai. Actually funda yha precedence kaa hai. Parenthesis ki precedence higher hoti hai typecast se. Type case bhi operation hai jo ki Urinary type kaa hai. See the Video no. 3 for reference

  • @artirajput5126
    @artirajput5126 Před rokem

    Sir hmare book k Ander h k jo implicit hota h uska main disadvantage h ki ya information loss krdata h

    • @manasgupta6647
      @manasgupta6647 Před rokem

      Bro... Explicit me hi loss of info hota h.... Implicit me nhi....

    • @manasgupta6647
      @manasgupta6647 Před rokem

      Becoz.... *Explicit is user defined*...
      And implicit is based on compiler..

  • @PrinceAli-gr6tz
    @PrinceAli-gr6tz Před rokem +1

    Program to Bano isaka practical me batate ha🥺🥺🥺🥺

  • @keshawam9656
    @keshawam9656 Před rokem

    Sir C programming me DATA TYPES toh bataya nhi aapne

  • @shalinisaxena4010
    @shalinisaxena4010 Před 11 měsíci

    You are so cute 😊😊😊😊

  • @ABHISHEKRANJAN.368
    @ABHISHEKRANJAN.368 Před rokem +10

    Is type casting or type conversion is same?

  • @priyankaupadhyay3663
    @priyankaupadhyay3663 Před 2 lety +1

    Sir last case me parenthesis ki associativity to L to R hoti na.... R to L nhi hoti apne last me glt bta rkha h shyd

    • @Hiralal-xw4nt
      @Hiralal-xw4nt Před 2 lety

      Actually it's not rong bcz inside both bracket have same precedence so division will firstly evaluate I think 🤔

    • @mukulsaini2961
      @mukulsaini2961 Před rokem

      @@Hiralal-xw4nt but when we see bracket associativity property we have to choose left to right

  • @ANURAGKUMAR-cm9no
    @ANURAGKUMAR-cm9no Před 2 lety

    Gurudev bahut health down ho gyil h Aap ki

  • @ANURAGKUMAR-cm9no
    @ANURAGKUMAR-cm9no Před 2 lety +1

    Health pe dhyan dijiye sir

  • @Ishaan-ok6uw
    @Ishaan-ok6uw Před rokem

    Lya kaha rahe ho??