This page describes C, C++ questionnaire written by specialists in C,C++ domain. This top 10 C,C++ interview questions and answers will help interviewee pass the job interview for C,C++ programming job position with ease. These questions are very useful as college viva questions also.
Question -1: Differentiate Structure and Union with example.
Question -2: Explain i++ and ++i with example.
Question -3: What is volatile variable?
Question -4: Initialize double dimension array with for loop?
Question -5: Explain benefits of C++ over C language.
Answer -5: Refer C++ tutorial➤.
Question -6: Explain public, private and protected declaration types.
Answer -6: Refer C++ tutorial➤.
Question -7: Explain about friend class and friend function used in C++ programming.
Answer -7: Refer C++ tutorial➤.
Question -8: Explain about 'Enum' data type.
Answer -8: It is used to initialize various data types to default values.
Question -9: Explain about 'typedef' keyword used in C language.
Answer -9: It is used to rename user defined data type.
Question -10: Explain about double pointer.
Answer -10: It is also referred as pointer to pointer.
Refer C language pointers➤ .
This set of C C++ interview questions and answers are useful for freshers and experienced level of job positions.