Interview Question #3 | C Programming Language

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • #shorts

Komentáře • 302

  • @Tailtotop
    @Tailtotop Před 9 měsíci +140

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

  • @dhruvgupta7738
    @dhruvgupta7738 Před 11 měsíci +180

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

    • @abhinandanmaurya47
      @abhinandanmaurya47 Před 5 měsíci +1

      Aapko coding aata hai ..will u help?

    • @Exposing.official.
      @Exposing.official. Před měsícem

      @@abhinandanmaurya47 bro, are you new to coding or you r going to start in future?

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

      @@Exposing.official. new

    • @Exposing.official.
      @Exposing.official. Před měsícem

      @@abhinandanmaurya47 I am started learning C, 1 year ago . I learned c from school

    • @user-lg4nl9om5w
      @user-lg4nl9om5w Před 20 dny

      ​​@@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

  • @yogeshjl8868
    @yogeshjl8868 Před 11 měsíci +55

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

  • @user-zv2pb5rr3
    @user-zv2pb5rr3 Před 11 měsíci +585

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

  • @studymania734
    @studymania734 Před 8 měsíci +2

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

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

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

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

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

  • @introvertsenpai9968
    @introvertsenpai9968 Před 11 měsíci +4

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

  • @gatikalagh39
    @gatikalagh39 Před 11 měsíci +4

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

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

      Its hard for me
      Am beginner how much time it will take to learnnn
      And how much you have learnt sir?

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

      ​@@abhinandanmaurya47you took maths?
      Is it hard for non maths students to do bca

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

      @@tangytomatoui maybe!!

  • @subharghyamanna
    @subharghyamanna Před 8 měsíci

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

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

    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.

  • @rajkamalkumar1748
    @rajkamalkumar1748 Před 11 měsíci +3

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

  • @GurpreetKaur-sc7or
    @GurpreetKaur-sc7or Před 11 měsíci

    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

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

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

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

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

  • @themilkywaygaming7453
    @themilkywaygaming7453 Před 11 měsíci +24

    That's definitely the easiest one in the coding interview

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

    Helpful.. pls continue such short videos

  • @PriyaGupta-qe4pr
    @PriyaGupta-qe4pr Před 11 měsíci +1

    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 :)

  • @specificgyan-adarshmishra7857
    @specificgyan-adarshmishra7857 Před 11 měsíci +3

    Thank you mam please keep continue this series 🙏😊

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

    Thank you di for starting this series

  • @statuskingjalgovn
    @statuskingjalgovn Před 6 měsíci +1

    10
    30
    Because of scope of variable

  • @jatin_9911
    @jatin_9911 Před 11 měsíci +2

    Thank u for this series

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

    Final output 30 due to local variable concept

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

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

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

    Technical word: name mangling , it comes under compilers elective

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

    Thank you for video like this please make more

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

    Thank you so much didi continue this series

  • @Samu-bb5rj
    @Samu-bb5rj Před 8 měsíci

    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

  • @sukhchain8267
    @sukhchain8267 Před 4 měsíci +1

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

  • @abhaysinghbhadauriya8223
    @abhaysinghbhadauriya8223 Před 11 měsíci +4

    Due to top to bottom approach in c language answer is 10,30

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

    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

  • @pintujain-work5218
    @pintujain-work5218 Před 9 měsíci

    Output is 10 30

  • @mohammadabdullahaalforhad1375

    Thanks

  • @neerajkumarsharma4598
    @neerajkumarsharma4598 Před 11 měsíci +3

    First Output will be 10
    Second Output will be 30

  • @manishdhubkarya5353
    @manishdhubkarya5353 Před 11 měsíci +3

    Once more, once more 😅😅😅

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

    1st Output 10
    2nd output 30

  • @user-dg6gn5kx2p
    @user-dg6gn5kx2p Před 11 měsíci

    the answer is 10 inside the block and out side the block 30

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

    inside loop third =10
    outside loop third=30

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

    Didi u r great🎉🎉

  • @tejasdeshmukh8236
    @tejasdeshmukh8236 Před 11 měsíci +31

    Shraddha didi - Simple sa code
    Students be like - Maro mujhe Maro😥

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

      Easy he to hai

    • @Brainrot476
      @Brainrot476 Před 6 měsíci +2

      It is easily comorehensible, and I don't even know C

  • @RANIXPLAYER
    @RANIXPLAYER Před 11 měsíci +2

    Shardha di practical kar ka bata diya kar ta ka 100% samaj ajaye

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

    Mene sahi answer kiya.
    Thanks to icse class 10 java.

  • @learnbypreet
    @learnbypreet Před 2 měsíci

    informative

  • @kahanibaba777
    @kahanibaba777 Před 10 měsíci +1

    Easy ..
    ..😊😊😊

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

    I answered and i proud of it ❤️

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

    Didi Java and Python interview questions as well pls

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

    first answer 10 and 30

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

    -10 ayega out put lekin jabki + ka aana chahiye

  • @AdeshkumarAdeshraj-dy9fh
    @AdeshkumarAdeshraj-dy9fh Před měsícem

    Firstly print 10 and after that print 30

  • @MeenaDevi-rc4yn
    @MeenaDevi-rc4yn Před 3 měsíci

    Didi, we want more shorts on C programming interview questions .

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

    I have just read this concept

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

    Yes right hay

  • @rounakverma8115
    @rounakverma8115 Před 4 měsíci

    Nice question mamm👍

  • @Bradman-df8nd
    @Bradman-df8nd Před 11 měsíci +2

    Shradha didi though output will be 1030 but compiler will show 1010

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

    Yes! I am right 🤠

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

    10 (local variable of that block)
    30 ( coz global variable)
    I think so let see it's correct or not

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

    OP

  • @rjrohanjain4
    @rjrohanjain4 Před 4 měsíci +1

    Why wouldn't this give an error the third variable is initialised two times inside the main

  • @01CoRner_
    @01CoRner_ Před 10 měsíci +1

    I did it in single attempt ✌️

  • @vagmine_.vartika
    @vagmine_.vartika Před 11 měsíci +1

    Please do some viva questions on programming for ug level

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

    ❤️🙌🏻

  • @Collegelife909
    @Collegelife909 Před 3 měsíci +2

    30

  • @eshankukreja112
    @eshankukreja112 Před 11 dny

    Di thoda sa hard question lao na agli baar

  • @news8092.editer
    @news8092.editer Před 10 měsíci

    F T (10) or se t (30 )

  • @saumyapandey2191
    @saumyapandey2191 Před 4 měsíci

    Didi coding ki classes start kar dijiye plz😊

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

    10.unray, Assignment.

  • @azimdrivelucky4830
    @azimdrivelucky4830 Před 8 měsíci

    ❤❤❤❤❤

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

    First time output 10
    Second time output 30

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

    First Output: 10
    Second Output: 20

  • @SAHILKHAN-db9cp
    @SAHILKHAN-db9cp Před 11 měsíci

    output :- 1030

  • @abhayguptaop
    @abhayguptaop Před 11 měsíci +4

    mai to 10th me hu mujhe bhi aa rha hai ye😂😂

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

    It was easy piesy

  • @Taiba-Hameed
    @Taiba-Hameed Před měsícem

    yes i also did it.

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

    Aaj hi subah local amd global variable ka concept padha tha 😁😁

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

    I knew this already

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

    Output: 10 30

  • @TheSuryavanshi08
    @TheSuryavanshi08 Před 3 měsíci +1

    But how can we access first and second in the inner block if it is possible then third is also there with value 30

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

    2nd intilaiztion will overwite the 1st one

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

    Nice video❤

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

    Simple code tha 👌

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

    Aisa hi video banao

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

    Mam python ka bhi questions bansya Karo

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

    First time Mera taught Sahi sabit hwa😂

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

    pehli bar mera shi answe aya 😂😂

  • @user-gc7ow9oo8d
    @user-gc7ow9oo8d Před 5 měsíci

    Yes I am right 😅

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

    Pehli dafa output sahi aagaya 😂

  • @YugDiya
    @YugDiya Před 8 měsíci

    Hi dear you are such great

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

    first output is 10
    second output 30

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

    Java ke interview questions bhi explain karwawo didi

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

    The output is 10

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

    Yes right answer is 10 and 30

  • @ValaKuldipsinh-zf5fr
    @ValaKuldipsinh-zf5fr Před 10 měsíci

    First time 10 and
    Second time 30

  • @mohitupadhyay8935
    @mohitupadhyay8935 Před 3 měsíci +1

    10 30

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

    Kitni awsome h na yar ye isky chakar mn coding seekh gya mn😂😂😂

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

    Thanka to @Gatewallah

  • @random.philosophies
    @random.philosophies Před 11 měsíci

    This is the only question till, which felt really easy 😢

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

    Madam aap c language ka ek competition exam ke hisab se video bana do please please

  • @mehra7690
    @mehra7690 Před 8 měsíci

    Dono answer ek sath ayengy. Screen clrear nhi hoga.

  • @kabukiknight4902
    @kabukiknight4902 Před 9 měsíci

    30 ez the latest call will overwrite the previous one

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

    per didi ans to same aana chayie..... kyuki hamne koi pointer ya phir koi loop to use kia nhi hai....