/*
This example says about the function takes no argument and returns pointer to array
of 3 interger.
*/
#include < iostream >
using namespace std;
int arr[]={11,22,33};
int (*f())[3]
{
cout << arr[1];
return &arr;
}
int main()
{
int(*(*g)())[3]= f;
(**g());
}
Cheer,
Sahu
Saturday, August 25, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment