how to make a varaible in c language

+1 Shehzad Ahmed Arain · February 1, 2015
please guide me how to set and use a variable locally and globally..?

Post a Reply

Replies

Oldest  Newest  Rating
0 Lazar Bulic · February 1, 2015
Local:


void function(){
   int a = 5;
   printf("%d", a);
}



Globally: 


int a = 5;

void function(){
   printf("%d", a);
}
0 J show · February 3, 2015
I'm taking matlab and c programming right now at the moment. I'm surprised i got into matlab because someone told me c programming is a prerquisite for matlab ha
  • 1

C

107,056 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator