Top "Declaration" questions

Declaration is the part of the subprogram (procedure or function) which provides the protocol(header), but not the body of the subprogram.

Define global variable in a JavaScript function

Is it possible to define a global variable in a JavaScript function? I want use the trailimage variable (declared in …

javascript function variables scope declaration
What’s the difference between "Array()" and "[]" while declaring a JavaScript array?

What's the real difference between declaring an array like this: var myArray = new Array(); and var myArray = [];

javascript arrays declaration
How to declare variable and use it in the same Oracle SQL script?

I want to write reusable code and need to declare some variables at the beginning and reuse them in the …

sql oracle variables declaration
How to initialize a vector in C++

I want to initialize a vector like we do in case of an array. Example int vv[2] = {12, 43}; But when I …

c++ arrays vector declaration
What is an 'undeclared identifier' error and how do I fix it?

What are undeclared identifier errors? What are common causes and how do I fix them? Example error texts: For the …

c++ compiler-errors declaration undeclared-identifier
Initializing multiple variables to the same value in Java

I'm looking for a clean and efficient method of declaring multiple variables of the same type and of the same …

java variables initialization declaration
Declaring multiple variables in JavaScript

In JavaScript, it is possible to declare multiple variables like this: var variable1 = "Hello, World!"; var variable2 = "Testing..."; var variable3 = 42; ...…

javascript variables coding-style performance declaration
Why is volatile needed in C?

Why is volatile needed in C? What is it used for? What will it do?

c declaration volatile
More elegant way of declaring multiple variables at the same time

To declare multiple variables at the "same time" I would do: a, b = True, False But if I had to …

python variables declaration