When you define a integer it gets stored in which data
structure?(Stack or a heap)
Answer Posted / 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 |
Post New Answer View All Answers
What is an interface in oop?
What is destructor in oop?
What is the diamond problem in inheritance?
What are the features of oop?
What is pointer in oop?
Can static class have constructor?
Can enum be null?
What does and I oop mean in text?
What is difference between multiple inheritance and multilevel inheritance?
Can main method override?
What is static in oop?
What does oop mean in snapchat?
What is the example of polymorphism?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
Whats oop mean?