Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to differentiate b/n definition and declaration?  
Some useful difference b/n definition and declaration are given below:

When define an object not only its attribute are made known,but its object are also created.Where as when we declare an object only its attribute are made known. 
Example:
We define object like;
long int lSum; 
long int lCount;
void SumInt(int nItem)
{
   lSum =lSum + (long)nItem;
   ++lCount;
}

We declare an object like;
void VFunction(int nType)
{
   int nTest;
   nTest = nType;
}