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 |
What is destructor example?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
can you give the dynamic polymorphism types?
What do you mean by variable?
What is use of overloading?
What is the renewal class?
What are generic functions and generic classes?
What is Iteration Hierarchy? What is what is Object behavioral concept?
which is best institute to learn c,c++ in ameerpet hyderabad
What is the important feature of inheritance?
why the argument is passed by reference to a copy constructor?example?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }