C Language Important Viva QA MSBT
C Language Important Viva QA MSBT
Q: What is a variable in C?
A: A variable is a name given to a memory location to store data. Its value can change during program execution.
Q: Define a constant in C.
A: A constant is a fixed value that cannot be changed during the execution of a program.
A: It tells the compiler to include standard input-output functions before actual compilation.
A: Data types define the type of data a variable can hold, e.g., int, float, char.
A: They control the flow of execution, like if, if-else, switch, loops.
Q: What is an array?
Q: What is a string in C?
Q: What is a structure?
Unit 4: Functions
Q: What is a function?
Q: Advantages of functions?
Q: What is recursion?
Unit 5: Pointers
Q: What is a pointer?
Q: What is FILE in C?