C Programming Interview Questions and Answers for Experienced - 1
What is the difference between getch() and getche()?
Both getch() and getche() are used to read single character there is very little difference
Both functions accept a character input value from the user.
When getch() is used, the key that was pressed will not appear on the screen. It is automatically captured and assigned to a variable.
While when getche() is used, the key that was pressed by the user appears on the screen and is assigned to a variable.
What is the syntax for ternary operators in C?
Ternary operator is same as if else control statement in C.
(Condition? true_value: false_vaue);
What is const pointer in C?
Const pointer is a pointer that can’t exchange the address of the variable that of pointing to.
Once const pointer is made to point one variable, we can’t change this pointer to point to any other variable.
This pointer is called const pointer.
What is wild pointer in C?
Uninitialized pointers are called as wild pointers in C which points to arbitrary (random) memory location.
This wild pointer may lead a program to behave wrongly or to crash.
Can a variable be both const and volatile?
Yes. The const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside this code. If a variable is both const and volatile, the two modifiers can appear in either order.
- 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
7000+ TNPSC Group 1, 2, 4, VAO Indian Economy Study Materials Pdf More
7000+ Gate Computer Science Engineering Previous Year Questions More
7000+ Fill in the Blanks with Suitable Homonyms More
7000+ Fill in the Blanks with Suitable Homophones More
Power Semiconductor Device and Integrated Circuits MCQ Questions Pdf More
7000+ TNPSC Group 1 Prelims Question Paper with Answers More
TNPSC Group 1, 2, 2a, 4, Soil, Minerals, Natural Resources Gk Quiz Questions More
PG TRB Physics Study Materials 2020 - 2021 More
1000+ History Quiz Questions and Answers Pdf More
Advanced WPF Interview Questions and Answers for Freshers More