Interview Question #3 | C Programming Language #placement

preview_player
Показать описание
#shorts
Рекомендации по теме
Комментарии
Автор

That's first question that i answer correctly by itself 😅

Tailtotop
Автор

Shradha di apse ek request hai please is series ko ese hi continue rakhna ese question solve krke confidence boost ho jata hai

dhruvgupta
Автор

Block of code output first: 10
Out of block statement output : 30

yogeshjl
Автор

First time kisne Etna accha es concept ko expian Kiya thank you 🙏

studymania
Автор

Thanks didi for sharing this type of questions, I get to know something new everytime I see this type of videos 🙏

introvertsenpai
Автор

pls continue bringing such shorts. They help in building strong foundation.

sanket
Автор

Your videos are a constant source of inspiration for me. Please keep them coming!

MyCodingDiary
Автор

first output is 10
second output is 30
concept used is the scope of variables outside and inside theb block

gatikalagh
Автор

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.

tahirmahmood
Автор

Thank you mam please keep continue this series 🙏😊

specificgyan-adarshmishra
Автор

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".

subharghyamanna
Автор

block of code output : 10
and out of block : 30

ShailendraSahani-pq
Автор

First time Output :-10
Second time Output :-30
Answer shai hoto like karo.

zvpbrr
Автор

10 and then 30 because first time it does the inner arthimetic operations within the curly brackets and then do the outer operations .

Nisar
Автор

First output is 10 and Second output is 30 Use in Global scope variable

rajkamalkumar
Автор

🎉 my answer was correct this time thanks didi and also plz come up with more videos on this series

total_programming
Автор

Finally second question that I got right😂 first was from the JavaScript

HBC
Автор

10, 30

Because C considers the same initialisation in two different block as different variables whether there names are same or not.

In C we called it Scope.

There are two scopes LOCAL AND GLOBAL

buglessbytes.official
Автор

Helpful.. pls continue such short videos

avinashdharme
Автор

phli baar shi answer khudd se aaya h❤❤thank u didu❤

fantastic_nisha