Search
 
SCRIPT & CODE EXAMPLE
 

C

what is the usage of extern in c

#include <stdio.h>
extern int x = 32;
int b = 8;
int main() {
   auto int a = 28;
   extern int b;
   printf("The value of auto variable : %d
", a);
   printf("The value of extern variables x and b : %d,%d
",x,b);
   x = 15;
   printf("The value of modified extern variable x : %d
",x);
   return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: prime number c program 
C :: typescript class as function parameter 
C :: plt legend top right outside 
C :: print a part of string c 
C :: mpi example 
C :: prime factorization of factorials using c 
C :: strings in c 
C :: simple calculator, using switch statement in C 
C :: mount cifs 
C :: flip exis in dataframe 
C :: c typedef 
C :: program to find the average of n numbers using arrays. 
C :: c remove last charachter from string 
C :: c concatenate and allocate string 
C :: Leap year using function in c 
C :: faire une facture en langage c 
C :: how to change file permissions in C language 
C :: c memcpy 
C :: create arrya of chars malloc 
C :: print 0 1 2 3 4 in c while loop 
C :: Multi-line Comments in C 
C :: objects in oops 
C :: what is clrsce in C 
C :: fine print serial key 
C :: Syntax for creating a node 
C :: ansi c write unsigned short to file 
C :: phpunit assert continue 
C :: send data to port in c 
C :: python project script run 
C :: list fiter octobercms 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =