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.

Nested structure in c

I have to build a nested structure to store some basic information about some person (name, age, address). So I …

c struct structure declaration
extern declaration and function definition both in the same file

I was just browsing through gcc source files. In gcc.c, I found something like extern int main (int, char **); …

c declaration extern function-declaration
Why do Java array declarations use curly brackets?

I would like to know why Java array declarations use curly brackets as opposed to the standard parenthesis. As illustrated …

java arrays declaration curly-braces
Difference between pointer to pointer and pointer to array?

Given that the name of an array is actually a pointer to the first element of an array, the following …

c arrays pointers declaration dereference
popen implicitly declared even though #include <stdio.h> is added

This is tiny snippet of my code. #include <stdio.h> #include <unistd.h> #include <stdlib.…

c declaration pipe implicit stdio
Can't declare variable in Firebird 2.5, why?

I have a one line query: DECLARE VARIABLE var_SecondsOfTime INTEGER; But after running the query I am getting this …

variables firebird declaration firebird2.5
declare extern variable within a C function?

I define a variable in a C file: int x, and I know I should use extern int x to …

c declaration extern variable-declaration
Why can't I declare a constant using var in C#?

this: const int a = 5; compiles just fine, whereas const var a = 5; doesn't... while: var a = 5; compiles just as well as …

c# declaration implicit-declaration
Declaring and initializing a variable in a Conditional or Control statement in C++

In Stroustrup's The C++ Programming Language: Special Edition (3rd Ed), Stroustrup writes that the declaration and initialization of variables in …

c++ compiler-construction conditional declaration
Redundancy in OCaml type declaration (ml/mli)

I'm trying to understand a specific thing about ocaml modules and their compilation: am I forced to redeclare types already …

interface module ocaml declaration