Pre/Post Increment Operators and Performance Differences


Let's say we want to print the numbers from 0 to 9. How do we do that ? int i=0; for (i=0; i<10; i++) { printf("%d \t", i); } How about writing the same for loop as below ? int i=0; for (i=0; i<10; ++i) { printf("%d \t", i); } Is there any difference between... Continue Reading →

Advertisements

Blog at WordPress.com.

Up ↑

%d bloggers like this: