Programming in C MCQ Questions and Answers

Memory Allocation in C Programming MCQ Questions and Answers

Q1. Which memory allocation type occurs automatically when a function is called? A) Static memory allocation B) Automatic memory allocation C) Dynamic memory allocation D) Register memory allocation Answer: B) Automatic memory allocation Q2. Which of the following is responsible for allocating memory at compile time? A) Static memory allocation B) Dynamic memory allocation C)