C Language Interview Questions and Answers for Experienced - 7
Question: 31
What is an Array?
An array is a group of similar data types stored under a common name.
Int a[10]; Here a[10] is an array with 10 integer values.
Question: 32
What is the difference between ++a and a++?
++a Means do the increment before the operation (pre increment)
a++ Means do the increment after the operation(post increment)
Example: a=5;
x=a++; /* assign x=5 */
y=a; /*now y assigns y=6 */
x=++a; /*assigns x=7 */
Question: 33
How many bytes are occupied by the int, char, float, long int and double?
Int Char Float Long int Double |
2 bytes 1 bytes 4 bytes 4 bytes 8 bytes |
Question: 34
What is the difference between while and do while loops in C?
While loop is executed only when given condition is true.
Whereas, do while loop is executed for first time irrespective of the condition.
After executing while loop for first time, then condition is checked.
Question: 35
Which functions in C can be used to append a string to another string?
The strcat function. It takes two parameters, the source string and the string value to be appended to the source string.
- Top 500+ C Language Interview Questions and Answers Pdf
- C Language Interview Questions and Answers
- C Language Interview Questions and Answers for Freshers
- C Language Interview Questions and Answers for Experienced
- C Programming Interview Questions and Answers
- Embedded C Interview Questions and Answers Pdf
- Top 200+ Advanced C Language Interview Questions 2020-2021
- C Programming Question Bank with Answers Pdf
- C Programming Interview Questions and Answers for Freshers
- C Programming Interview Questions and Answers for Experienced
- C Programming Basics Questions and Answers Pdf
- 1000+ Advanced C Programming Interview Questions & Answers
- 1000+ C Interview Questions and Answers 2023 - 2024 Pdf
- 1000+ C Programming Coding Questions and Answers
- 1000+ C Basic Interview Questions for Freshers Pdf
- 1000+ C Questions and Answers Pdf
Nuclear Physics Questions for Class 10 with Answers Pdf More
Samacheer Kalvi Class 10 Science Nuclear Physics Questions More
Class 10 Science Acoustics Exam Questions & Answers Pdf More
Samacheer Kalvi Class 10 Science Acoustics Questions & Answers More
Agricultural Engineering Multiple Choice Questions and Answers Pdf More
1000+ RRB NTPC Reasoning Questions and Answers Pdf More
1000+ Irrigation Engineering GATE Questions and Answers More
7000+ Question Tags Exercises with Answers Pdf More
International Organisations UPSC Questions and Answers More
25+ Staroffice Quiz Questions and Answers 2020-2021 More