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 |
HOW CAN ADD OUR FUNCTION IN LIBRARY.
Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program
19 Answers CTS, HCL, TCS,
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 5 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
WAP – represent a char in binary format
what's the return value of malloc()
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
write a program to find the given number is prime or not
2 Answers Accenture, Vasutech,
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
what is the return type of printf
errors in computer programmes are called
Is it better to use malloc() or calloc()?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?