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.

unmanaged var as member of managed class c++

I'm novice in .net c++ and trying to create class looking like: public ref class Klient { public: Klient(){} // zmienne static …

class c++-cli declaration mixed-mode
Why doesn't C# let you declare multiple variables using var?

Given the following: // not a problem int i = 2, j = 3; so it surprises me that this: // compiler error: Implicitly-typed local variables …

c# declaration implicit-typing variable-declaration
Can a union be initialized in the declaration?

For example, say we have a union typedef union { unsigned long U32; float f; }U_U32_F; When a variable …

c initialization declaration unions
What does it mean when there is a comma inside an array declaration? e.g. float[,]

I have some code I'm trying to understand while learning C#. I do not understand what I even need to …

c# arrays declaration
how to declare a variable in Netezza?

I have a Netezza query where I reference a couple of dates in a series of case statements. Instead of …

sql variables declaration netezza
Declaring and initializing variables within Java switches

I have a crazy question about Java switches. int key = 2; switch (key) { case 1: int value = 1; break; case 2: value = 2; System.out.…

java scope initialization switch-statement declaration
Declaration of template class member specialization

When I specialize a (static) member function/constant in a template class, I'm confused as to where the declaration is …

c++ templates declaration template-specialization
When do I define objective-c methods?

I'm learning Objective-C, and have a C/C++ background. In object-oriented C++, you always need to declare your method before …

objective-c declaration definition api-design
Forward declare typedef within C++ class

What's the best solution to forward declare a typedef within a class. Here's an example of what I need to …

c++ typedef declaration forward
How to declare multiple variables with specifying type using As in VBA?

According to this documentation by Microsoft, the following code can be used to make sure; a, b, and c are …

excel vba declaration variable-declaration