Submitted Questions

  • Garbage Value

    In C if a variable is not assigned a value then why does it take garbage value?

    aprajita

    • Mar 28th, 2019

    This is giving 0 all the time

    Nilaya

    • May 2nd, 2018

    As the program execution in C is handled by stacks in the computer, when a variable is not assigned a value, the stack assigns a garbage value for it.