what is diff between localstatic and globalstatis variable
possible 2 use in another file...?
Answer Posted / abdur rab
Local Static
============
The scope of the variable is only within the function where
it is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static
=============
The scope of the variable is only within the file where it
is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static variables are not visible outside the files
where they are declared.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Linked lists -- can you tell me how to check whether a linked list is circular?
What is LINKED LIST? How can you access the last element in a linked list?
can anyone please tell about the nested interrupts?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the use of pointers in C?
Explain what is the general form of a c program?
What is typedef?
what is a function method?give example?
What is a buffer in c?
Write a program to check prime number in c programming?
program to convert a integer to string in c language'
Which is the best website to learn c programming?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Write a program that accept anumber in words
how to introdu5ce my self in serco