Get it on Google Play
Hey check out this LuckyKhel App at:
Get it on Google Play Get it on Google Play
LuckyKhel

Tuesday, 29 May 2012

what is Extern keyword?

extern keyword in c

Keyword extern is used for declaring extern variables in c. This modifier is used with all data types like int, float, double, array, pointer, structure, function etc.
Important points about extern keyword:
1. It is default storage class of all global variables as well all functions. For example, Analyze following two c code and its output:
(a)
#include <stdio.h>
int i;    //By default it is extern variable
int main(){
    printf("%d",i);
    return 0
}

No comments:

Post a Comment



Hey check out this LuckyKhel App at:
Get it on Google Play Get it on Google Play
LuckyKhel