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
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Is c# a good language?
Does c have an equivalent to pascals with statement?
What is the difference between void main and main in c?
Explain how can you tell whether a program was compiled using c versus c++?
write a program to concatenation the string using switch case?
What are register variables in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is the difference between fread buffer() and fwrite buffer()?
The file stdio.h, what does it contain?
What is difference between %d and %i in c?
What is the difference between a string and an array?
writ a program to compare using strcmp VIVA and viva with its output.
What are the back slash character constants or escape sequence charactersavailable in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?