Computer 12 Quiz Thursday, March 8, 2018

For our quiz on Thursday, March 8, 2018, you will be given an example of code and expected to produce the output.  Tuesday you a chance to ask any questions.  Here is an example of what you might expect and how you would answer:

Sample Code:

#include <stdio.h>
int main(int argc, char** argv){

	int x=5;
	printf ("the value of x=%d\n",x);

	     printf("x is %d\n",x);


This code will produce the following output:

the value of x=5
x is 5
x is 4
x is 3
x is 2
x is 1

mrcampbell / March 2, 2018 / Computer 12