/* * print-test.c * John Stile */ #include int main(void) { printf("--1--I am %s on my computer here in %s\n", "programming", "my office"); printf("--2--The temperature is %f degrees F \n", 68.5); printf("--3--%d is my happiness index \n", 99); //This gave an error when split after happiness /* * Splitting above line at happiness lead to errors. * * print-test.c: In function 'main': * print-test.c:13: error: missing terminating " character * print-test.c:14: error: stray '\' in program * print-test.c:14: error: 'index' undeclared (first use in this function) * print-test.c:14: error: (Each undeclared identifier is reported only once * print-test.c:14: error: for each function it appears in.) * print-test.c:14: error: expected ')' before 'n' * print-test.c:14: error: missing terminating " character * print-test.c:20: error: expected ';' before '}' token * */ printf("--4--I will get \ a grade of %c in C \n", 'A'); return 0; }