Diffenentiate between an internal static and external static variable?

Diffenentiate between an internal static and external static variable?

Some main difference between internal static and external static are given below:

We declare the internal static variable inside a block with static storage class. External static variable is declared outside all the blocks in a file.
In internal static variable has persistent storage,no linkage and block scope, where as in external static variable has permanent storage,internal linkage and file scope.

By:Vivek
Date:2029-12-08 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher