C- Declarations and Initializations Questions and Answers
Understanding C Declarations and Initializations is fundamental for mastering C programming. These concepts are frequently covered in programming questions and answers for placement tests and technical interviews at companies like TCS, Infosys, and Wipro. Declarations define variables, while initializations assign values to them, both ensuring efficient memory and data handling in C. This guide provides C programming MCQs and practical examples that clarify variable scope, storage classes, and initialization rules. Ideal for both beginners and job seekers, it strengthens your coding logic and interview readiness with real-world examples and practice problems.
C- Declarations and Initializations
Showing 10 of
49 questions
47. What is the scope of a local variable?
- Whole program
- Within the function
- Within the file
- Global scope
48. Which is the correct way to declare a function?
- function name(){}
- int function_name();
- declare function();
- function int();
49. What does "auto" storage class indicate?
- External storage
- Automatic storage
- Static storage
- Register storage