10 C C++ interview questions and answers-C,C++ Questionnaire
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.
Answer -1:
Refer Structure vs Union➤.
Question -2: Explain i++ and ++i with example.
Answer -2: i++ would return the current value of 'i' and then increment the value of 'i'
++i on the other hand increment the value of 'i' before returning the value
Refer Answer-2➤.
Question -3: What is volatile variable?
Answer -3:
Refer Answer-3➤.
Question -4: Initialize double dimension array with for loop?
Answer -4:
Refer Answer-4➤.
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.
Refer Enum➤.
Question -9: Explain about 'typedef' keyword used in C language.
Answer -9: It is used to rename user defined data type.
Refer C language typedef➤.
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.
Top 10,12,15 Interview Questions and Answers
LTE Interview Questions and Answers
RF Interview Questions and Answers
Telecom Interview Questions and Answers
WCDMA Interview Questions and Answers
WiMAX Interview Questions and Answers
WLAN Interview Questions and Answers
Microcontroller Interview Questions and Answers
Electronics Interview Questions and Answers
Zigbee Interview Questions and Answers
IoT Interview Questions and Answers
Optical Interview Questions and Answers
DSP Interview Questions and Answers
Labview Interview Questions and Answers
MATLAB Interview Questions and Answers
VHDL Verilog Interview Questions and Answers
C C++ Interview Questions and Answers
Networking Interview Questions and Answers