Dear CareersValley Reader,
Below are four solved C interview questions. Though this question set is tagged under TCS sample questions, similar questions can be expected during other interviews too.
Interview Question 1
Which of the following program structure/component/statement is not an example for implementation of modularization ?
Options : a) DLL b) Functions c) type casting
Option c) type casting. DLL and Functions help in modularization of a program while typecasting just converts from one data type to another.
Interview Question 2
Can a program be invoked from another program ? If yes, how it can be done ?
Yes, a program can invoke another program using system calls.
Interview Question 3
Most of you would be knowing "Register" variables are the ones stored in CPU for faster access. Is there a crude way to determine data size for register variables.
Yes, generally the size would be less than or equal to integer data size. There are exceptions too.
Interview Question 4
Is it necessary to use register modifier on all compilers irrespective of whether they are old or modern ones ?
No, compilers nowadays are intelligent enough to decide which variables need to be kept in CPU registers depending upon the estimated usage.