What is Heap?
Answers were Sorted based on User's Feedback
Answer / anurag
Heap is portion of memory which is allocated with program
address space when the program require memory at run time,
the memory from heap is allocated.apart from this all global
variables are also allocated their space from heap.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / nisha nair
A data structure called heap is a binary tree with keys
assigned to its nodes provided it satisfies two
requirements:
1. Tree shape requirement.
2. Parental domainance requirement.
| Is This Answer Correct ? | 2 Yes | 1 No |
Why c language is called c?
What is a memory leak? How to avoid it?
What is the use of function in c?
how to make program without <> in libray.
What is the difference between array and pointer?
write a function for strtok()??
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
Explain a file operation in C with an example.
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are enumerated types?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100