@@Exposing.official. good for u. Small tip: get info bout the domain u find interesting and start learning all languages which used in domain. Don't stop. Keep learning
This is the concept of storage class in C. While we are writing only "int" by default compiler will think like "auto int". And this all scenarios are creating because of this "auto". "auto" variables give the block scope and life upto the block. Other than "auto", there are "extern", "register" & "static".
Answer is 10 30 because outer block variables second and first are accessible in the inner block which have it's own third which is a different variable (not same as the outer block's third) . So first printf will print 20-30=10. And when inner loop is terminated then the value of outer block's third will be printed that is 30
Umm first time I guess correct answer 😅didi ke questions me se 😍😹 isliye c programming is best for starting and learning easy to understand and it's boost our confidence as well :)
C plus plus ka command pahle local variable ko identify karta hai aur uske bad Global variables ko identify Karta Hai To pahle vah Global variable per na jakar pahle local variable ko print Karega Uske bad Global variable ko print Karega
That's first question that i answer correctly by itself 😅
Same😅
Same 😅😢
Same here😂
Same
Shradha di apse ek request hai please is series ko ese hi continue rakhna ese question solve krke confidence boost ho jata hai
Aapko coding aata hai ..will u help?
@@abhinandanmaurya47 bro, are you new to coding or you r going to start in future?
@@Exposing.official. new
@@abhinandanmaurya47 I am started learning C, 1 year ago . I learned c from school
@@Exposing.official. good for u. Small tip: get info bout the domain u find interesting and start learning all languages which used in domain. Don't stop. Keep learning
Block of code output first: 10
Out of block statement output : 30
First time Output :-10
Second time Output :-30
Answer shai hoto like karo.
Tmko kyu like kre krnge?
Answer toh video mai hi tha
'-'main nahi aayega bhai
10
First time kisne Etna accha es concept ko expian Kiya thank you 🙏
Your videos are a constant source of inspiration for me. Please keep them coming!
pls continue bringing such shorts. They help in building strong foundation.
Thanks didi for sharing this type of questions, I get to know something new everytime I see this type of videos 🙏
first output is 10
second output is 30
concept used is the scope of variables outside and inside theb block
Its hard for me
Am beginner how much time it will take to learnnn
And how much you have learnt sir?
@@abhinandanmaurya47you took maths?
Is it hard for non maths students to do bca
@@tangytomatoui maybe!!
This is the concept of storage class in C. While we are writing only "int" by default compiler will think like "auto int". And this all scenarios are creating because of this "auto". "auto" variables give the block scope and life upto the block. Other than "auto", there are "extern", "register" & "static".
Please! apse request ha ke esse hi C,C++,OOP etc ke codes le kr aya krein aur reason ke sath explain kiya krein. It's really helpful for beginners.
How much you know coding sir?
First output is 10 and Second output is 30 Use in Global scope variable
Answer is 10 30 because outer block variables second and first are accessible in the inner block which have it's own third which is a different variable (not same as the outer block's third) . So first printf will print 20-30=10. And when inner loop is terminated then the value of outer block's third will be printed that is 30
10 and then 30 because first time it does the inner arthimetic operations within the curly brackets and then do the outer operations .
🎉 my answer was correct this time thanks didi and also plz come up with more videos on this series
That's definitely the easiest one in the coding interview
Mujhe bhot hard lag rha hai
Am beginner
What should i do?
Ppp(practice ,practice, practice)@@abhinandanmaurya47
Helpful.. pls continue such short videos
Umm first time I guess correct answer 😅didi ke questions me se 😍😹 isliye c programming is best for starting and learning easy to understand and it's boost our confidence as well :)
Thank you mam please keep continue this series 🙏😊
Thank you di for starting this series
10
30
Because of scope of variable
Thank u for this series
Final output 30 due to local variable concept
phli baar shi answer khudd se aaya h❤❤thank u didu❤
Technical word: name mangling , it comes under compilers elective
Thank you for video like this please make more
Thank you so much didi continue this series
C plus plus ka command pahle local variable ko identify karta hai aur uske bad Global variables ko identify Karta Hai To pahle vah Global variable per na jakar pahle local variable ko print Karega Uske bad Global variable ko print Karega
WOW , languages are quite similar 😮,
"I never learn c language I only know one language which is python but I can still solve this question."
Due to top to bottom approach in c language answer is 10,30
First 10 will printed 20-10=10 was printed after out of the curly bracket means out of the scope int third = 30 we can assign that 30 was printed
Output is 10 30
Thanks
First Output will be 10
Second Output will be 30
Once more, once more 😅😅😅
1st Output 10
2nd output 30
the answer is 10 inside the block and out side the block 30
inside loop third =10
outside loop third=30
Didi u r great🎉🎉
Shraddha didi - Simple sa code
Students be like - Maro mujhe Maro😥
Easy he to hai
It is easily comorehensible, and I don't even know C
Shardha di practical kar ka bata diya kar ta ka 100% samaj ajaye
Mene sahi answer kiya.
Thanks to icse class 10 java.
informative
Easy ..
..😊😊😊
I answered and i proud of it ❤️
Didi Java and Python interview questions as well pls
first answer 10 and 30
-10 ayega out put lekin jabki + ka aana chahiye
Firstly print 10 and after that print 30
Didi, we want more shorts on C programming interview questions .
I have just read this concept
Yes right hay
Nice question mamm👍
Shradha didi though output will be 1030 but compiler will show 1010
How....
Yes! I am right 🤠
10 (local variable of that block)
30 ( coz global variable)
I think so let see it's correct or not
30 is not global.
OP
Why wouldn't this give an error the third variable is initialised two times inside the main
I did it in single attempt ✌️
Please do some viva questions on programming for ug level
❤️🙌🏻
30
Di thoda sa hard question lao na agli baar
F T (10) or se t (30 )
Didi coding ki classes start kar dijiye plz😊
10.unray, Assignment.
❤❤❤❤❤
First time output 10
Second time output 30
First Output: 10
Second Output: 20
output :- 1030
mai to 10th me hu mujhe bhi aa rha hai ye😂😂
It was easy piesy
yes i also did it.
Aaj hi subah local amd global variable ka concept padha tha 😁😁
I knew this already
Output: 10 30
But how can we access first and second in the inner block if it is possible then third is also there with value 30
2nd intilaiztion will overwite the 1st one
Nice video❤
Simple code tha 👌
Aisa hi video banao
Mam python ka bhi questions bansya Karo
First time Mera taught Sahi sabit hwa😂
pehli bar mera shi answe aya 😂😂
Yes I am right 😅
Pehli dafa output sahi aagaya 😂
Hi dear you are such great
first output is 10
second output 30
Java ke interview questions bhi explain karwawo didi
The output is 10
Yes right answer is 10 and 30
First time 10 and
Second time 30
10 30
Kitni awsome h na yar ye isky chakar mn coding seekh gya mn😂😂😂
Thanka to @Gatewallah
This is the only question till, which felt really easy 😢
Madam aap c language ka ek competition exam ke hisab se video bana do please please
Dono answer ek sath ayengy. Screen clrear nhi hoga.
30 ez the latest call will overwrite the previous one
per didi ans to same aana chayie..... kyuki hamne koi pointer ya phir koi loop to use kia nhi hai....