By using declaration we can the name and type of a variable.But it does not allocate space.
By using definition we can allocate space for the variable
by declaration we mean specifying data type of variable and memory is allocated in this stage only except for pointers which have dynamic memory allocation eg: int a[10]; in this 20 bytes are kept aside for a
All the programs are tested under Turbo C/C++ compilers. It is assumed that, ?? Programs run under DOS environment, ?? The underlying machine is an x86 system, ?? Program is compiled using Turbo C/C++ compiler. The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed).
Predict the output or error(s) for the following:
i) void main() { int const * p=5; printf("%d",++(*p)); }