When you define a integer it gets stored in which data
structure?(Stack or a heap)
Answers were Sorted based on User's Feedback
Answer / shyam
Depends on where the integer is declared. If it s declared in a block it goes into stack.
If it s an static or global variable, it will not be stored in stack. It ll be stored in data segment of the running program.
Integer will never be stored in heap... never...
| Is This Answer Correct ? | 1 Yes | 0 No |
Can we override main method?
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
Why many objects can working together? How objects working togetherM I want to see example code.
Why do we use class in oops?
how to swap the variables without using temp and operators
what is the main difference between sizeof() operator in c and c++
When will a constructor executed?
What is polymorphism explain?
What is overriding vs overloading?
Why multiple inheritance is not possible?
why constructor cannt be declar virtually? why destructor cannt be overloaded?