No the two work together REALLY
If you define a variable inside of your function, the variable can be referred and used only inside of that function. It means that you will not able to use the variable in another function (including main). Area of code where your variable can be used after declaration is usually called visibility of the variable.
A: A potentiometer is a manual device to change the resistance A thermistor changes as a function of environment temperature
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<1;k++) { i++; s++; main(); } printf("%d is i",&i); printf(%d is S",&s); getch(); } Output will be 2 is i 3 is s It Shows that local variable initialize every time the function call.But Static variable initializes only once <><><> For a variable, static means it keeps its value even when the enclosing code is not active--out of scope. A static variable is assigned to a fixed memory location when the program runs, so it is possible to examine a static variable at any time the program is active, even when the function where the var is declared is not active. A local variable is dynamically allocated storage space when a function is called, and its storage is given up when the function ends, so it only exists while the function is executing. For a function, static declaration means it can only be called from functions in the same file (in C).
explain about function call
It isn't a question, sorry.
If you define a variable inside of your function, the variable can be referred and used only inside of that function. It means that you will not able to use the variable in another function (including main). Area of code where your variable can be used after declaration is usually called visibility of the variable.
Explain the Law of Variable Propotion
A: A potentiometer is a manual device to change the resistance A thermistor changes as a function of environment temperature
explain development, i need it for homework
Explanatory (or predictor) variable: A variable which is used in a relationship to explain or to predict changes in the values of another variable; the latter called the dependent variable.
Explain the ide of matlab
Explain the ide of matlab
there are three stages of production mp>ap
explain your project
Stage of denial
The storage class specifiers in C and C++ are:autoexternmutableregisterstatictypedefA storage class specifier is used to refine the declaration of a variable, a function, and parameters
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<1;k++) { i++; s++; main(); } printf("%d is i",&i); printf(%d is S",&s); getch(); } Output will be 2 is i 3 is s It Shows that local variable initialize every time the function call.But Static variable initializes only once <><><> For a variable, static means it keeps its value even when the enclosing code is not active--out of scope. A static variable is assigned to a fixed memory location when the program runs, so it is possible to examine a static variable at any time the program is active, even when the function where the var is declared is not active. A local variable is dynamically allocated storage space when a function is called, and its storage is given up when the function ends, so it only exists while the function is executing. For a function, static declaration means it can only be called from functions in the same file (in C).