Tuesday, January 3, 2012

Why is this for loop printing different answers?

because in the second one for each iteration of a,b will be igned with zero.but in the first one b will retain its value and will not become zero everytime

No comments:

Post a Comment