This section on C interview questions, tricky questions, and puzzles focuses on “Variable naming convention”. One shall practice these questions and puzzles to improve their C programming skills needed for various interviews (campus interviews, walk-in interviews, viva exams and company interviews), placements, entrance exams and other competitive exams. These programming questions can be attempted by anyone focusing on learning C Programming language. They can be a beginner, fresher, engineering graduate, engineering student, bca student, mca student, mcs students or an experienced IT professional. Here is a listing of C questions and puzzles on “variable names” along with answers and/or explanations.
Q1: Which is valid C expression?
Q2: Which is not a valid c expression?
Q3: Which is not a valid c variable declaration?
Q4: Which is a valid variable declaration?
Q5: Which is invalid variable name?
Q6: Which is a valid variable name?
Q7: Which is not a invalid variable name?
Q8: Which is not a valid variable name?
Q9: What can not be used in variable name?
Q10: Variable can not be started with?