Vidyalelo
Computer Science · Q215

Linux

Engineering and GATE · Computer Science · question 215

Q215

What is the output of this program? #include #include #include int main() struct rlimit limit; if(getrlimit(RLIMIT_DATA,&limit) != 0) perror("getrlimit"); printf("%lu ",limit.rlim_max); return 0;

A.
maximum size of data segment of this process in bytes
B.
maximum size of total available storage for this process in bytes
Answer
C.
segmentaion fault
D.
none of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board