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
Write a program to sort the number with different sorts in one program ??
What are the benefits of interface?
What are the 4 main oop principles?
What is polymorphism oop?
#include
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is abstract class in oop?
When not to use object oriented programming?
What is encapsulation with example?
What is new keyword in oops?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we need oop?
What type of loop is a for loop?
What is overloading in oops?
explain sub-type and sub class? atleast u have differ it into 4 points?