Just Programming
Pages
Home
C C++ Topics
JAVA Aptitude
Assaan IT Solutions
My Facebook Group
My Site
Friday, 22 March 2013
Related to previous example
void main()
{
static int i=i++, j=j++, k=k++;
printf(“i = %d j = %d k = %d”, i, j, k);
}
Answer:
i = 1 j = 1 k = 1
Explanation:
Since static variables are initialized to zero by default.
Blog Author:
Vijay Kumar
Go to:
Java Aptitude
,
C C++ Aptitude
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment