Sample TCS Simple C Interview Questions
Below are few simple interview questions from C which you can expect on interviews by top companies like TCS. Though these questions are extremely simple, a miss in any of the below questions could hamper the impression you could leave on your interviewer. Hence it is very essential that you are very strong with the basics.
Interview Question 1
What are macros and why they are used ?
Answer :
In programming terms, macros can be defined as short statements that are actually expanded into lengthier set of statements during execution.
Macros in C save a lot of programming time (though there is no direct impact on execution time.)
Interview Question 2
What is typecasting ?
Answer :
In C programs involving arithmetic expressions, often need arises to convert a variable/expression of one data type to another. This process is called typecasting.
Interview Question 3
In C functions, what is the easiest way to pass arrays as arguments ?
Answer :
Passing by reference is the easiest way to pass arrays as arguments in C functions.
Interview Question 4
What does void keyword implies when used to the left of function name in function definitions ?
Answer :
void to the left of function name in function definition indicates that function will not return a value.




