answersLogoWhite

0

During declaration, the declaration goes like this:

extern <type> <variable-name>

or

<type> <function-name> (<parameter list>);

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What variable hasvalue that is read only and cannot be change during the program execution?

A constant is a variable with a value that is set at the time of declaration and cannot be changed during program execution.


What are the differences of a constant and a variable?

A constant has only the exact value it's declared and can never be changed. A variable can have any number of values assigned. In programming, a variable can be given a value later in the code but can only be changed during runtime if its been declared as a pointer.


When may congress suspend the writ of habeas corpus?

By declaration of a National Emergency by the President and/or during a time when Martial Law is declared.


What can you change in a variables?

In programming, you can change the value of a variable, which is essentially assigning a new value to the variable. The type of data a variable can hold is typically fixed after it's declared, but the actual value can be updated as needed during the program's execution.


Deifference between declaration and definition?

Declaring a variable or function reserves an entry in a symbol table for that function or variable (entries in a symbol table eventually become memory addresses during linkage). Defining a variable or function actually specifies the value to be stored in the memory location specified and/or the code that should be compiled. Examples: Declaration: int foo(); // Declares a function. int bar; // Declares a variable. Definition: int foo() { printf("Hello World"); } bar = 5; Declaration and definition: int bar = 5;


Why do you need variable declaration in c?

Because, by the rules of the language, all identifiers must be declared before or during initialization (and use). The only exception is that untyped functions are assumed to return an int. These are the C rules. For the C++ rules, it is the same, except that functions must also be declared. The technical reason why is simply that the compiler is designed to be a single pass compiler, and that only works when you know the a priori type of an identifier.


Why did the US claim war on Germany?

it was part of the alliance thing germany was in alliance with japan and japan attacked usa in pearl harbour and declared war on japn therefore on germany as well answer 2: During World War 2, after Japan attacked the US, the US declared war on Japan. Germany in response declared war on the US, the only such declaration made by Nazi Germany. In response to the German declaration, the US declared war on Germany.


When declaring a variable in languages such as c java and c?

In C, C++ and Java, all variables must be declared before they can be used. A declaration determine's the variable's type and name, nothing more. The type must be visible to the compiler at the point of declaration in order to determine the amount of memory require by that type. The type naturally determines what type of data may be stored in the variable. The name is user-defined and must be unique to the scope in which the variable is declared. The name provides a reference to the memory address allocated to the variable at runtime. In C, variables are always uninitialised (they have no value). As such, C programmers typically declare all variables used by a function at the top of the function, initialising them as and when required. This can lead to problems if the programmer forgets to initialise the variable before using it, however the compiler should emit a warning to guard against this. If the programmer ignores the warning, the program will have undefined behaviour. C++ and Java are similar to C in that respect but, unlike C, variables may be initialised at the point of declaration (assigned a value of the type). This encourages programmers to declare variables at the point they are actually required rather than up front. Constants are similar to variables except they do not change value once initialised. Constants must always be initialised at the point of declaration except in C++ when declaring a constant at class scope; it must be initialised at global scope (outside the class). In Java, constants are declared with the 'final' keyword before the variable's type. Both C and C++ use the 'const' keyword. Variables may also be declared volatile which means the variable's value is outwith the control of the process or thread in which it is declared and could change at any time. Declaring a volatile simply ensures that the variable cannot be read during a write (creating a race condition) and that all access must occur in main memory; the variable cannot be cached.


What is the variable that is changed during an experiment?

The independent variable changes during an experiment.


What is the Variable that changes during experiment?

The independent variable changes during an experiment.


What is the variable that is changed in an experiment?

The independent variable is the variable that is changed during an experiment.


Variable measured during an experiment?

Dependent variable.