© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu

C and C++ Interview Questions

13. Differentiate between a linker and linkage?

Ans:
A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable is declared in a program determine the linkage of variable.

Ex - Q1: What is an Array in C Language?

Ans:

An array in C Programing Language can be defined as number of memory locations, each of which can store the same data type and which can be references through the same variable name.

Ex - Q2: How we declare the array?
Ans:

            Arrays must be declared before they can be used in the program. Standard array declaration is as type variable_name[lengthofarray];Here type specifies the variable type of the element which is going to be stored in the array. In C programmin language we can declare the array of any basic standard type which C language supports.

if you declare i as register  compiler will treat it as ordinary integer and it will take integer value. i value may be  stored  either in register  or in memory.


SLogix Student Projects
bottom