3. A value stored in a CPU register can always
be accessed faster than the one that is
stored in memory
CPU Register and Memory
4.
5.
6.
7.
8.
9.
10.
11.
12.
13. Example of extern storage class
#include <stdio.h>
extern int i=10; //extern variable
int main(){
printf("%d",i);
return 0;
}
Output: 10
14. Example of extern storage class
#include <stdio.h>
int main(){
extern int i=10; //Try to initialize extern variable locally.
printf("%d",i);
return 0;
}
Output- Compilation error: Cannot initialize extern variable.