Basic example of c++ that include both the local and global variables
Answers
Answered by
0
void main()
{
int a=10;
if (a>12)
{cout<<a;
int b=a; \\ local variable b .
}
cout<<b; \\ error because b is local variable.
}
pls mark it as brainliest
{
int a=10;
if (a>12)
{cout<<a;
int b=a; \\ local variable b .
}
cout<<b; \\ error because b is local variable.
}
pls mark it as brainliest
Similar questions