C Programming Interview Questions and Answers - 7
Question: 31
What is the use of semicolon(;) at the end of every program statement?
It has to do with the parsing process and compilation of the code.
A semicolon acts as a delimiter, so that the compiler knows where each statement ends, and can proceed to divide the statement into smaller elements for syntax checking.
Question: 32
What is the difference between single equal “=” and double equal “==” operators in C?
Single equal is an assignment operator used to assign the values to the variables.
But, double equal is relational operator used to compare two variable values whether they are equal or not.
Question: 33
Where should typecast functions not used in C?
Type cast function should not be used in const and volatile declaration.
Because, constant value can’t be modified by the program once they are defined.
And, volatile variables values might keep on changing without any explicit assignment by the program as operating system will be modifying these values.
Question: 34
What is the use of “# define” in C?
#define is a pre-processor directive which is used to define constant value. This constant can be any of the basic data types.
Question: 35
How will you print “Hello World” without semicolon?
int main (void)
{
if (printf(“Hello World”));
}
- 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
Control System Questions and Answers Pdf More
GATE Analog Electronics MCQ Questions and Answers More
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
1000+ Tricky Maths Questions and Answers More
Java Interview Questions and Answers for Freshers Pdf More
100+ Maths Number Puzzles with Answers for Bank Exams More
1000+ Problem Solving MCQ Questions and Answers More
1000+ Power Generation Objective Questions and Answers Pdf More