What is the difference between static and local declaration?

First, lets speak about the scope of a variable. The scope of a variable is the section of the application that can see and manipulate that variable. If the variable is declared in a procedure when that procedure is called, only that procedure can use that variable.

Hence that variable is considered "Local Now Static. Static variables are variables that are created with the static key word as in:- function ab(var1 as integer)as integer static iTotal as integer itotal =iTotal + var1 (rest of ccode goes here) end function Now when this function is called the first time, iTotal will be assigned the value of var1. The next time the function is called, iTotal will retain the previous value and the new value of var1 will be added to it.

Hope this helps. (theTeacha) Static variables life time is not under any scope. It initializes only one time from creation to delete.

Let me explain by a pgm void main() { int a=1 static s=1 int k=0 for(k=0;k.

The difference is a type of puzzle where players must find a set number of differences between two otherwise similar images, whether they are illustrations or photographs that have been altered with photo manipulation. Spot the difference games are also known as photo hunt games, and are commonly found in activity books for children or in newspapers.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions