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.

Where can I legally declare a variable in C99?

When I was first introduced to C I was told to always declare my variables at the top of the …

c variables declaration
Typescript Declaration Files for Local JS Files

I am trying add typings for our Javascript files at work while we are in the process of converting to …

javascript typescript declaration type-declaration declaration-files
Declaring variables in the arguments to a function in C

I have a sort of bizarre wish; I don't know if any compiler or language extension out there allows this. …

c function variables declaration invocation
Multiple declarations of x

I have this code and it won't compile, highlighting the x and y right of Point3 and writing: "Multiple declarations …

haskell declaration
Declare a user defined distribution

How do you define your own distributions in R? If I have a distribution that looks something like this: P(…

r distribution declaration
Dynamic table type declaration

I need to write a FM where I will receive the data type of an element as a string parameter …

dynamic declaration abap function-module
I do not understand why this compiles

I'm certainly missing something, but I do not understand why this compiles (with both g++ & clang++): struct A { }; struct …

c++ syntax declaration most-vexing-parse
What are declarations and declarators and how are their types interpreted by the standard?

How exactly does the standard define that, for example, float (*(*(&e)[10])())[5] declares a variable of type "reference to array …

c++ types c++11 standards declaration