define statement must be declared before (in c programming)
Answers
Answered by
3
Answer:
In C and C++, variables need to be declared before they are used, usually at the beginning of the function before any executable statement. However in python, they need not be declared. And both C++ and python are object oriented
Answered by
0
In C and C++, variables need to be declared before they are used, usually at the beginning of the function before any executable statement.
Explanation:
Actually, it is not required that a function be declared before use in C.
If it encounters an attempt to call a function, the compiler will assume a variable argument list and that the function returns an int.
The main difference between declaration and definition in C is that the declaration of a variable indicates the compiler of the existence of a variable, while the definition of a variable indicates the compiler where and how much storage to create for a variable.
Similar questions