C Language Interview Questions and Answers for Experienced - 9
Question: 41
What is Macro?
Macro is a name which is given to a value or to a piece of code/block in a program.
Instead of using the value, we can use macro which will replace the value in a program.
Syntax: #define<MACRO_NAME>VALUE
Question: 42
What is the difference between while loop and do while loop?
In the while loop the condition is first executed. If the condition is true then
It executes the body of the loop. When the condition is false it comes out of the loop.
In the do while loop first the statement is executed and then the condition is checked.
The do while loop will execute atleast one time even though the condition is false at the very first time.
Question: 43
How do you open the file?
The File is opened by the statement
fp=fopen(“file_name”,”mode”);
Where fp means file pointer, mode is the file opening mode, such as write,read, or append mode.
Question: 44
What are the types of errors occurred in C program?
There are four types of errors occurred during the program execution.
- Syntax errors
- Runtime errors
- Logical errors
- Latent errors
Question: 45
What is the modulus operator?
The modulus operator outputs the remainder of a division. It makes use of the percentage (%) symbol.
- 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
Top 1,000+ Basic Computer Knowledge Quiz with Answers More
Top 50+ Arithmetic Reasoning Questions for SSC CGL Exams More
1000+ Computer Awareness 2023 Pdf More
1000+ SBI Aptitude Questions and Answers Pdf More
Top 50+ National and International Organisations Quiz 2019-2020 More