What is the difference between stack and heap memory?
Answer Posted / nashiinformaticssolutions
o Stack: Memory is allocated and deallocated automatically.
o Heap: Memory is allocated dynamically using new or malloc.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use templates?
how to access grid view row?
Can non graphic characters be used and processed in C++?
What is the sequence of destruction of local objects?
what are the iterator and generic algorithms.
What are put and get pointers?
When can I use a forward declaration?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is a manipulator in c++?
Define linked lists with the help of an example.
What is dev c++ used for?
Are strings immutable in c++?
What are the c++ access specifiers?
What would happen on forgetting [], while deallocating an array through new?