Programming MCQS - QUESTION DETAILS

What is the role of 'calloc' function in C?
A. Allocate memory for an array
B. Free allocated memory
C. Allocate memory for a variable
D. Allocate and initialize memory for an array

'calloc' allocates and initializes memory for an array.

Similar Questions

What is the role of the 'static' keyword in Java?






What is the purpose of the 'super()' constructor in Java?






How do you create an object of a class in Java?






Which method is used to read data from the keyboard in Java?






What is the purpose of the 'finalize' method in Java?






How do you declare a constant in an interface in Java?






Which of the following is a correct way to create an ArrayList in Java?






What is the output of System.out.println("Java" == "Java");?






What is the purpose of the 'default' keyword in a switch statement?






What is the output of System.out.println(10 / 3.0);?