|
main()
{
int i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}
,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++,
HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
main()
{
int i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}
1
Before entering into the for loop the checking condition is "evaluated". Here it evaluates to 0 (false) and comes out of the loop, and i is incremented.
|