C interview questions: for TCS, Infosys, Accenture, IBM.
C interview questions: for TCS, Infosys, Accenture, IBM.
Get the latest and most tricky technical interview questions asked in TCS technical interviews.Also Read: Latest Placement Paper For TCS 2014 Campus Appearing Batch
Que: In which field C programming language is still used ?
Ans: In Hardware drivers (laptop, desktops etc..) programming as its the most popular hardware specific language.
Que: What are the different storage classes in C?
Ans: Storage classes in C
There are four storage classes in C:
a. Automatic storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control remains within the block in which defined.
b. Register storage class: The features of variables are as follows
-Storage: CPU registers
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control remains within the block in which defined
c. Static storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: Local to the block in which defined
-Life: value of variable persists between different function calls.
d. External storage class: The features of variables here are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: global
-Life: As long as program execution does not come to an end.
what is Recursive Function
Ans: Definition - Recursive function is a special function that contains a call to itself. C supports creating recursive function with ease and effecient.
Why Recursive Function
Recursive function allows you to divide the complex problem into identical single simple cases which can handle easily. This is also a well-known computer programming technique called divide and conquer.
Que: How many types of tokens in C?
Ans :
•There are 6 types of tokens in 'C'. They are:
1) Keywords
2) Identifiers
3) Constants
4) Strings
5) Special symbols
6) Operators
Get the latest and most tricky technical interview questions asked in TCS technical interviews.Also Read: Latest Placement Paper For TCS 2014 Campus Appearing Batch
Que: In which field C programming language is still used ?
Ans: In Hardware drivers (laptop, desktops etc..) programming as its the most popular hardware specific language.
Que: What are the different storage classes in C?
Ans: Storage classes in C
There are four storage classes in C:
a. Automatic storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control remains within the block in which defined.
b. Register storage class: The features of variables are as follows
-Storage: CPU registers
-Default initial value: Garbage value
-Scope: Local to the block in which defined
-Life: till the control remains within the block in which defined
c. Static storage class: The features of variables are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: Local to the block in which defined
-Life: value of variable persists between different function calls.
d. External storage class: The features of variables here are as follows
-Storage: Memory
-Default initial value: Zero
-Scope: global
-Life: As long as program execution does not come to an end.
what is Recursive Function
Ans: Definition - Recursive function is a special function that contains a call to itself. C supports creating recursive function with ease and effecient.
Why Recursive Function
Recursive function allows you to divide the complex problem into identical single simple cases which can handle easily. This is also a well-known computer programming technique called divide and conquer.
Que: How many types of tokens in C?
Ans :
•There are 6 types of tokens in 'C'. They are:
1) Keywords
2) Identifiers
3) Constants
4) Strings
5) Special symbols
6) Operators