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\n", a);
   printf("The value of extern variables x and b : %d,%d\n",x,b);
   x = 15;
   printf("The value of modified extern variable x : %d\n",x);
   return 0;
}

4
6
Awgiedawgie 440215 points

                                    extern &quot;C&quot;{
&nbsp; &nbsp;int printf(const char *format,...);
}
main() {
&nbsp; &nbsp;printf(&quot;Hello World&quot;);
}

4 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
extern use in c extern &quot;C&quot; s extern example in c using extern c using extern in c whta is extern &quot;c&quot; extern in c extern usage in c example extern &quot;C&quot; in c extern &quot;C&quot; example extern &quot;C in c&quot; what is the use of extern in c c extern &quot;C&quot; use of extern in c programming extern define c c extern usage how does the extern keyword work in c use extern keyword in c how to use extern in c how to use extern function in c what does extern &quot;C&quot; means when to use extern in c extern example c extern c meaning what is the use of extern c what does extern &quot;C&quot; mean c use of extern c externs meaning of extern in c what is the use of extern keyword in c use extern function in c c extern define use of extern in C extern class in c externe &quot;C&quot; use extern in c extern c example how extern c works when to use extern in c when to use extern c why we use extern in c how to use extern keyword in c when to use extern keyword in c extern &quot;C&quot; { extern in c language extern represent in c programming extern in c example what does extern mean in c c extern examples extern in c extern &quot;C&quot;{ what does extern do in c what is extern in c is extern a keyword in c? c how to initialize extern data extern long in c extern &quot;C&quot; external variable in c extern variable extern c usage What does extern &quot;C&quot; { do? how to use extern keyword in c with example what is extern &quot;C&quot; c extern variable what does extern c do extern key-word c++ exter c extern keyword in c for functions extern c functions c extern c++ extern extern keyword extern in c/c++ c what does extern mean what is extern in c language c use extern variable how to declare a function extern c c how to use extern variable external variables c extern in variable declaration c external variables in c an external variable in c extern c class math additio should i use extern keyword extern in c++ when is extern used in c exeternal variables in c extern keyword c++ extern int in c what do you mean by extern in c c define extern variable extern meaning C global variable in c extern extern int exter in c extern c++ { } extern int? extern c how to use extern variables in c how to use extern c extern variable in c how does extern work in c extern keyword in c what is the usage of extern in c
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source