Top "Variable-declaration" questions

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

How to create a string-type variable in C

Question How to declare a string variable in C? Background In my quest to learn the basics of c, I …

c string variable-declaration
C++, variable declaration in 'if' expression

What's going on here? if(int a = Func1()) { // Works. } if((int a = Func1())) { // Fails to compile. } if((int a = Func1()) &…

c++ compilation if-statement variable-declaration
How to declare a variable in MySQL for a normal query?

How can I declare a variable for a normal query in MySQL? e.g., declare @myVar date; set @myVar = something; …

mysql variables variable-declaration
Is there any overhead to declaring a variable within a loop? (C++)

I am just wondering if there would be any loss of speed or efficiency if you did something like this: …

c++ loops variable-declaration
Declaring javascript variables as specific types

The title says it all, but I will provide more clarification: After seeing many samples of javascript where all variables …

javascript variables variable-declaration
dynamically declare/create lists in python

I am a beginner in python and met with a requirement to declare/create some lists dynamically for in python …

python list dynamic creation variable-declaration
Variable declaration after goto Label

Today I found one interesting thing. I didn't know that one can't declare a variable after a goto label. Compiling …

c goto variable-declaration
Possible to initialize an array after the declaration in C?

Is there a way to declare a variable like this before actually initializing it? CGFloat components[8] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.15 }; I'd like it declared …

c variable-declaration
setq and defvar in Lisp

I see that the Practical Common Lisp uses (defvar *db* nil) for setting up a global variable. Isn't it OK …

variables lisp common-lisp assign variable-declaration
Problems in declaring a variable as Byte in VB.NET

I'm trying out a program which I found on the net. Why is it necessary to put to curly braces …

.net vb.net variables byte variable-declaration