This program will allocate the memory of ___ bytes for pointer "ptr".
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = realloc(0,sizeof(int)*10);
return 0;
}
a) 0
b) 10
c) 40
d) none of the mentioned
Submitted by: Murtazac) 40
Explanation:
If the first argument of realloc() is NULL, then it behaves just like malloc().
Submitted by: Murtaza
Explanation:
If the first argument of realloc() is NULL, then it behaves just like malloc().
Submitted by: Murtaza
Read Online Device Drivers Job Interview Questions And Answers
Top Device Drivers Questions
☺ | The major number identifies the _____ associated with the device. |
☺ | The kernel identifies the driver with its: |
☺ | The connection between the device file and device driver is based on the: |
☺ | In linux kernel 2.4, we can have: |
☺ | Which one of the following is not true? |
Top Linux OS Categories
☺ | Device Drivers Interview Questions. |
☺ | Linux OS Management Interview Questions. |
☺ | Linux Makefile Interview Questions. |
☺ | Linux Environment Interview Questions. |
☺ | Linux OS Shell Interview Questions. |