You are on page 1of 2

C Questions and Answers | C Languages Questions and Answers | C Lang...

http://www.a2zinterviews.com/Languages/c/c-language-interview-questi...

Home page Contact Us

a2zinterviews
New : Asp.Net Interview Questions and Answers

Aptitude Database G.K Interview Languages Puzzles Reasoning .Net Dataware Housing

LANGUAGES - C C Language Interview Question and Answers


6. What is thiss pointer? The this pointer is a pointer accessible only within the member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer. 7. What are the uses of a pointer? Pointer is used in the following cases It is used to access array elements. It is used for dynamic memory allocation. It is used in Call by reference. It is used in data structures like trees, graph, linked list etc.

8. What is the purpose of main() function? The function main() invokes other functions within it.It is the first function to be called when the program starts execution. It is the starting function. It returns an int value to the environment that called the program. Recursive call is allowed for main( ) also. It is a user-defined function.

9. What are the different storage classes in C? There are four types of storage classes. Automatic Extern Regiter Static

10. Define inheritance? Inheritance is the process by which objects of one class acquire properties of objects of another class.

1 of 2

7/22/2013 10:59 AM

C Questions and Answers | C Languages Questions and Answers | C Lang...

http://www.a2zinterviews.com/Languages/c/c-language-interview-questi...

123456789101112131415

1617181920 Page 2 of 20

VB Net PDF Interview Tips C++ PDF

Apache rtr
FROM

25,000

Maruti Swift
FROM

180,000

Chevrolet Optra
FROM

1,50,000

2011 a2zinterviews.com. All Rights Reserved ASP.Net | Datastage | HR Interviews | Placement Papers | Verbal Analogy

2 of 2

7/22/2013 10:59 AM

You might also like