View Single Post
  #5 (permalink)  
Old February 8th, 2004, 07:35 AM
Sebastiani Sebastiani is offline
Registered User
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 More importantly, run the following loops. What is the output, and why is it so?

for (i=0;i<n;i++)
printf("%d",a[i]);

for (i=0;i<n;i++)
printf("%d",*(a+i));


"The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." - Donald Knuth
Reply With Quote