C Programming Question Bank with Answers Pdf - 1
What is arithmetic operator in C?
C Arithmetic operators are used to perform mathematical calculations like addition, subtraction, multiplication, division and modulus in C programs.
Arithmetic operators are +, -, *, /, %.
Is pointer arithmetic a valid one?
Pointer arithmetic is not valid one. Pointer addition, multiplication and division are not allowed as these are not making any sense in pointer arithmetic.
What is the difference between call by value and call by reference?
When using Call by Value, you are sending the value of a variable as parameter to a function.
Where Call by Reference sends the address of the variable. Also under Call by Value, the value in the parameter is not affected by whatever operation that takes place, while in the case of Call by Reference, values can be affected by the process within the functions.
When can void pointer and null pointer be used in C?
Void pointer is a generic pointer that can be used to point another variable of any data type.
Null pointer is a pointer which is pointing to nothing.
Is void pointer arithmetic a valid one?
Arithmetic operation on void pointer is not valid one. Void pointer is a generic pointer.
It is not referring int, char or any other data type specifically.
So, we need to cast void pointer to specific type before applying arithmetic operations.
- 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
100+ Statement and Courses of Action Practice Questions Pdf More
100+ Statement and Course of Action Questions for SBI PO More
100+ Statement and Courses of Action Questions and Answers More
1001+ Puzzle Questions and Answers Pdf Download More
Top 1000+ Logic Maths IQ Test Questions and Answers More
Articles Quiz for TNPSC More
Top 50+ Indian National Movement Quiz Questions and Answers More
TNPSC Group 1, 2, 2a, 4, VAO Fundamental Rights Study Material Notes More
Science Quiz Questions and Answers More
Spelling Test for Class/Grade 6, 7, 8, 9, 10 More