Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

when we declear the int i=10 then int value stored in which memory?

0 votes
asked Jan 26, 2019 by Ravi Dharigond (150 points)

1 Answer

0 votes
answered Jan 26, 2019 by Admin (5,100 points)
If you have declared it inside function then it will be stored on stack.
If its declared global or static, it will be stored in global data area of program.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...