Home / MCQ Bank / Computer
Computer Memory Allocation Difficulty: Medium

What is the purpose of the 'memset' function in C?

Select the correct option to test your answer:

More Computer Questions

What function in R is used to generate random numbers from a standard normal distribution? Consider the following piece of code in C++. What does the following code implement? #include <iostream> using namespace std; int main() { int *arr_vla; int size; cout<<"Enter the size of variable length array: "; cin>>size; arr_vla = new int [size]; for (int i = 0; i < size; i++) { cout<<"Enter the integers to be inserted in the variable length array: "; cin>>arr_vla[i]; } for(int i = 0; i < size; i++) { cout<<arr_vla[i]<<" "; } cout<<endl; return 0; } In data science, what is "data visualization" used for in business analytics? What will be the output of the following Java program? class exception_handling { public static void main(String args[]) { try { int a, b; b = 0; a = 5 / b; System.out.print("A"); } catch(ArithmeticException e) { System.out.print("B"); } } } In which language do arrays have a fixed size and cannot be resized?