Just Programming
Pages
Home
C C++ Topics
JAVA Aptitude
Assaan IT Solutions
My Facebook Group
My Site
Wednesday, 13 March 2013
Different variable scope 2
#include
<stdio.h>
int
main(){
int
xyz=20;{
int
xyz=40;
}
printf(
"%d"
,xyz);
return
0;
}
20
Explanation:
Two variables can have same name in different scope.
Blog Author:
Vijay Kumar
Go to:
Java Aptitude
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment