what are brk, sbrk?



what are brk, sbrk? ..

Answer / guest

These are the system calles used to allocate the memory.
brk will call internally when u call malloc func.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


What is indirect recursion? give an example?

4 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers   TCS, Vimukti Technologies,


What are the different types of data structures in c?

0 Answers  


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

0 Answers   Wipro,






Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;

5 Answers   ITCO, Wipro,


what is the difference between global variable & static variable declared out side all the function in the file.

2 Answers  


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

3 Answers  


What are the different flags in C? And how they are useful? And give example for each in different consequences?

1 Answers  


write a c program to find the roots of a quadratic equation ax2 + bx + c = 0

11 Answers   CSC, St Marys, TATA,


Is fortran still used in 2018?

0 Answers  


Categories