printf() is used here like it's used later (as in the line "printf("sum=\t%d", sum);"). The only difference is that only the number is printed, and that number is a[i], the i-th element of a.



...