Professional Documents
Culture Documents
C Programming Viva Questions
C Programming Viva Questions
2. What is a compiler?
Ans- Compile is a software program that transfer program developed in a high-level
language into executable object code.
3. What is an algorithm?
Ans- The approach or method that is used to solve the problem is called an algorithm.
6. What is an identifier?
Ans- Identifiers are user-defined names given to variables, functions and arrays.
8. What is a variable?
Ans- Variables are user-defined names given to memory locations and are used to store
values. A variable may have different values at
different times during program execution.
13. What is a Unary operator and what are the unary operators present in C?
Ans- An operator which takes only one operand is called a unary operator. C unary
operators are Unary plus (+), Unary minus (-),
Increment and Decrement operators (++,–), Address of operator (&), Value at operator
(*), sizeof operator, ones complement operator (~)
46. What is the difference between normal variable and array variable?
Ans- A variable can store only one value at a time whereas an array variable can store
several value at a time.