Interview Questions

Diffenentiate between an internal static and external static variable?

C Interview Questions and Answers


(Continued from previous question...)

Diffenentiate between an internal static and external static variable?

An internal static variable is declared inside a block with static storage class whereas an external static variable is declared outside all the blocks in a file.An internal static variable has persistent storage,block scope and no linkage.An external static variable has permanent storage,file scope and internal linkage.

(Continued on next question...)

Other Interview Questions