1)What are the different storage classes in C?
Ans=>C has three types of storage: automatic, static and allocated.
Variable having block scope and without static specifier have
automatic storage duration.
Variables with block scope, and with static specifier have static scope.
Global variables (i.e, file scope) with or without the static specifier also
have static scope.
2) How are pointer variables initialized?
Ans=>Pointer variable are initialized by one of the following two ways
Static memory allocation
Dynamic memory allocation
Ans=>C has three types of storage: automatic, static and allocated.
Variable having block scope and without static specifier have
automatic storage duration.
Variables with block scope, and with static specifier have static scope.
Global variables (i.e, file scope) with or without the static specifier also
have static scope.
2) How are pointer variables initialized?
Ans=>Pointer variable are initialized by one of the following two ways
Static memory allocation
Dynamic memory allocation