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

Explain what are preprocessor directives?

616


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

753


What is #include stdio h and #include conio h?

591


If errno contains a nonzero number, is there an error?

789


what are the advantages of a macro over a function?

633






What is malloc return c?

593


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

593


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1433


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1832


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2225


What is the use of #define preprocessor in c?

607


Why c is called top down?

618


What is getch () for?

667


How can you call a function, given its name as a string?

707


What is the advantage of a random access file?

633