B
bharath.donnipad
Hi,
I just started learning c++ since 2 months...I have a following doubt.
can someone pls explain.
//include headers
int main()
{
int xyz;
using namespace std;
// some statements
cin>>xyz;
f();
// some statements
} //end of main
f()
{
// some statements
}
How long will be the scope of my statement using namespace std; ? will
the scope of this go after "//end of main" ?
Can i use it in f() also?
I just started learning c++ since 2 months...I have a following doubt.
can someone pls explain.
//include headers
int main()
{
int xyz;
using namespace std;
// some statements
cin>>xyz;
f();
// some statements
} //end of main
f()
{
// some statements
}
How long will be the scope of my statement using namespace std; ? will
the scope of this go after "//end of main" ?
Can i use it in f() also?