C Programming and Technical

Q. What are the uses of a pointer?

A.
(i)It is used to access array elements
(ii)It is used for dynamic memory allocation.
(iii)It is used in Call by reference
(iv)It is used in data structures like trees, graph, linked list etc.

Read Solution (Total 1)

C Other Question

Q. What is storage class? What are the different storage classes in C?

A. Storage class is an attribute that changes the behavior of a variable. It controls the lifetime, scope and linkage. The storage classes in c are auto, register, and extern, static, typedef
Q. In header files whether functions are declared or defined?

A. Functions are declared within header file. That is function prototypes exist in a header file,not function bodies. They are defined in library (lib).