Kindly See this code
Code:
#include "stdafx.h"
#include <iostream>
using namespace System;
using namespace std;
int   AA(int a=0);
int *pAA(int c=0);

class CBox
{
public :
	CBox()  //// Constructor

	{
		cout <<endl<< "Constractor Start";
		cout <<endl<<"-------------------------";
	}

	~CBox()   ////destructor
	{
		cout<< endl <<" Destructor Start ";
		cout<<endl <<"------------------------------";
		
};


int main(void)
{
int (*pAA)(int ) = AA;
	cout <<endl<< "1. Start Main Function";
	cout <<endl<<"--------------------------------";

    int AA(5);  /// Here is My Question
    cout <<endl<<" The pointer to function  AA () : "<< pAA;
    return 0;

}

int AA(int  k)
{
	
	cout <<endl<<" Start Function AA";
	cout <<endl<<"---------------------------------";    
    CBox Box1;
    CBox Box2;
   return 0;
}
My Question is :
When I wrote the line code :
Code:
AA(5);
the function started and created two classes Box1 & Box2;

But when I wrote the same code :
Code:
int AA(5);
The Function did not work
Kindly Expalin.

Regards.