C Programming Interview Questions and Answers for Experienced - 1
Question: 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.
Question: 2
What is the syntax for ternary operators in C?
Ternary operator is same as if else control statement in C.
Syntax:
(Condition? true_value: false_vaue);
Question: 3
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.
Question: 4
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.
Question: 5
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
IBPS Clerk English Questions with Answers Pdf More
SBI PO, SO Computer Science Previous Year Question Paper More
IBPS PO, SO, Clerk Computer Science Previous Year Question Paper More
KPSC Group C Computer Knowledge Questions More
Ethiopian Computer Science Exit Exam Questions More
7th Social Geography Unit 3 Questions More
TNPSC Group 1, 2, 2a, 4, VAO Economics GK Online Test 2019-2020 More
25+ Ado.Net Interview Questions and Answers More
100+ General Knowledge Questions on Health and Hygiene More
1000+ Oil and Gas Quiz Questions and Answers More