CS 3410 Fall 2016
Due: Complete the designated zybook activities by noon on Saturday. Show your instructor your solution to Challenge Activity 8.5.1 in class (completing it online is not sufficient!)
This week you will get to know some basics of C by completing the following Participation and Challenge Activities:
To use a user-defined variable, let's say for a for
loop, you would need to use a bit of a HACK. This hack is basically putting your code into its own scope.
{ int i; for (i = 0; i < 100000; ++i) { printf("%d\n", i); } }
After enclosing your entire code with braces, the redeclaration issues will go away.