Typecasting in C programming | Implicit & Explicit type conversions
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
Okk sir
Thank you so much. U r very good teacher.
Concept got cleared ❤
Thank you so much sir for this video 🙂
Thank u sir
Very nice explanation
superb explanation sir tq
Excellent sir
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🙏🙏
Thank you
wh sir you are genious🖤
Excellent..... Sir you just explain it very well in very short time period.....💯💯
Thank you so much ..💖
0:39 start
Thnk u sir thnk u god 🙏😇
Thank you sir very nice gide & very nice information implicit & explicit conversion teaching video.👍
Mo
Thanks sir
Love you sir bhaiyah infinity times
Nice sir
thanks sir
thank you
Thanks ❤️❤️❤️❤️
Wow, good
thanx sir
thank you dada,
from bangladesh.
Nice ❤️🤗👍
Thank🥰u sir
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
Ek hi hai
@@virendersharma8094 ek hi hai
bhai thanks this question also formed in my mind
@@virendersharma8094 ek hote h
Parenthesis ki if L to R hoti hai then float kyo ni kya pehle ..then a/b krta
How to type cast float into boolean?
I want to start preparation for gate
Give us a roadmap
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 ?
❤❤
❤❤❤❤❤
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
No I think, you are Bang on!
1st Comment
Awesome 😎
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
Right
no run the code and you will know that sir is right
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
Sir please tell me paranthesis associativity is Right to left or Left to right because in book it is Left to right
Left to right 👍
You Rocks Sir 🔥🔥❤️🎯
Star samasher wali id ko kya hua block ho gayi kya 😂😂😂
Original bhi Yahin Rakhenge.......... Duplicate bhi Yahin Rakhenge. 🎭🎯🎭
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.
Right
Sir please make the correction
true
Love from pakistan sir .. 💐
Pls share more software testing videos
Could you please put the English subtitle?
Sir I'm from Pakistan
How to enroll in Computer Instructor courses of your paid course
Please guide main
sir, UPES dehradun, uttarakhand mein aajao as a cs teacher. pleaseee.... video pause krke bola h beech m value rakhna
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
Ha.. if we use int then it will take integer type so simply it returns 5.0
Associativity left to right h() ki
0:12 meanwhile I am studying it just for my BCA
0:38
1:20
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
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
Sir hmare book k Ander h k jo implicit hota h uska main disadvantage h ki ya information loss krdata h
Bro... Explicit me hi loss of info hota h.... Implicit me nhi....
Becoz.... *Explicit is user defined*...
And implicit is based on compiler..
Program to Bano isaka practical me batate ha🥺🥺🥺🥺
Sir C programming me DATA TYPES toh bataya nhi aapne
You are so cute 😊😊😊😊
Is type casting or type conversion is same?
Yes
Yes both are same
No
Yes
no
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
Actually it's not rong bcz inside both bracket have same precedence so division will firstly evaluate I think 🤔
@@Hiralal-xw4nt but when we see bracket associativity property we have to choose left to right
Gurudev bahut health down ho gyil h Aap ki
Health pe dhyan dijiye sir
Kya problem laga bhai tuze ??😅😆
@@shis10 gurudev h bhai
Lya kaha rahe ho??