EmbLogic's Blog

C program

# define min(a,b)  ((a)<(b))?(a):(b)

int main()

{ int i=0,a=0;

while(min(a++,9)<8)

i=i+1;

printf(“%d\n”,i);

return 0;

}

what will be output? how n why ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>