what is diff between localstatic and globalstatis variable
possible 2 use in another file...?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
localstatic belong to that only that function .
globalestatic belong 2whole file. not possible.
Is This Answer Correct ? | 6 Yes | 1 No |
HOW TO SWAP TWO NOS IN ONE STEP?
write a code for large nos multilication (upto 200 digits)
write a program to swap two variables a=5 , b= 10 without using third variable
Can you tell me how to check whether a linked list is circular?
What is the use of a ‘