Top "Variable-declaration" questions

In computer programming, variable declaration specifies properties of a variable (such as its type).

Is it possible only to declare a variable without assigning any value in Python?

Is it possible to declare a variable in Python, like so?: var so that it initialized to None? It seems …

python variable-assignment variable-declaration
When to use extern in C++

I'm reading "Think in C++" and it just introduced the extern declaration. For example: extern int x; extern float y; …

c++ variable-declaration
C pointer to array/array of pointers disambiguation

What is the difference between the following declarations: int* arr1[8]; int (*arr2)[8]; int *(arr3[8]); What is the general rule for …

c arrays pointers variable-declaration
Python Variable Declaration

Learning Python, and has some basic doubts. 1.I have seen variable declaration (path here) as class writer: path = "" sometimes, no …

python python-3.x python-2.7 variable-declaration
Is it possible to declare a public variable in vba and assign a default value?

I want to do this but it won't compile: Public MyVariable as Integer = 123 What's the best way of achieving this?

vba variables default-value public variable-declaration
Can I simultaneously declare and assign a variable in VBA?

I'm new to VBA and want to know if I can convert the following declaration and assignment into one line: …

vba variable-declaration
Declaring variables inside loops, good practice or bad practice?

Question #1: Is declaring a variable inside a loop a good practice or bad practice? I've read the other threads about …

c++ loops variable-declaration
C error: Expected expression before int

When I tried the following code I get the error mentioned. if(a==1) int b =10; But the following is syntactically …

c syntax-error conditional-statements variable-declaration
Declare and assign multiple string variables at the same time

I'm declaring some strings that are empty, so it won't throw errors later on. I've read that this was the …

c# variable-declaration variable-initialization
MYSQL Stored Procedures: Variable Declaration and Conditional Statements

I have looked over numerous tutorials, manuals and documentations, but I still can not get this to work. I am …

mysql sql stored-procedures variable-declaration