Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between static and global variables?

Answer Posted / kush joshi

static variable only can access within a function where
these declared, but the global variables access any where in
the program.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is best book for data structures in c?

1092


find the sum of two matrices and WAP for it.

1132


How do you define a string?

1101


Write a code to generate a series where the next element is the sum of last k terms.

1222


What 'lex' does?

1177


What will be the outcome of the following conditional statement if the value of variable s is 10?

1284


What is data structure in c programming?

1073


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1283


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1433


How can I write a function analogous to scanf?

1177


Explain what is the benefit of using const for declaring constants?

1026


What are the types of pointers in c?

1022


What is the meaning of && in c?

1013


what is different between auto and local static? why should we use local static?

1123


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1366