Question
Standard C library functions will always invoke a system
call when executed from a single-threaded process in a UNIX/Linux operating system?Solution
exit C library functions - Terminates the process normally, performing the regular cleanup for terminating programs. malloc - This is a function defined in standard C library and it does not always invoke the system call. When a process is created, certain amount of heap memory is already allocated to it, when required to expand or shrink that memory, it internally uses sbrk/brk system call on Unix/Linux. sleep - This is not even standard C library function, it is a POSIX standard c library function which always invokes the system call.
The smallest natural number that must be added to 1212 to make it a perfect square is:
Find the unit digit of (62375Â - 7)
Find the number of zeros at the end of the following expression:
12 × 16 × 25 × 40 × 45
When a number is increased by 20% then the number obtained is 72 less than thrice the original number. Find the original number.
Product of two consecutive positive even numbers is 840. Find the sum of the digits of the two numbers. Â
The number of pencils with ‘Ravi’ and ‘Shyam’ together is 30 more than that with ‘Karan’, while the number of pencils with ‘Shyam’ and �...
If the 6-digit number '5a1897' is divisible by '11', determine the value of 'a'.
Product of two consecutive positive even numbers is 440. Find the sum of the digits of the two numbers.Â
- Find the least 5-digit number which leaves no remainder when divided by 22, 33, 44 and 66.