Computer Science, asked by saikumar111997, 1 year ago

Basic example of c++ that include both the local and global variables

Answers

Answered by nms
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
Similar questions