[Courses] C Programming For Absolute Beginners, Lesson 2: Fun With Printf, Scanf, Puts, and Variables

Christopher Howard christopher.howard at frigidcode.com
Thu Feb 23 06:46:49 UTC 2012


For what it's worth, you can occasionally save yourself a few lines of
code by substituting in values directly:

> 	c = a + b;
> 	printf("%d + %d = %d\n", a, b, c);

...becomes...

printf("%d + %d = %d\n", a, b, a + b);

-- 
frigidcode.com
indicium.us



More information about the Courses mailing list