Use the editor below to write your first C program mimicking the one above, but with a more creative message.
// Paste your program here
Type up and compile the above program. What is the compiler error reported?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What is the error produced by compiling this program?
What kind of a compiler error do you get if you try to use a reserved word as an identifier? Use a reserved word to declare an integer identifier.
What happens if you omit the "L" or "LLU" when declaring numStarsInUniverse and largestIntegerInC? What happens if you use
%dfor the largestIntegerInC print statement?
Adjust the amount of space used in the printf call. What happens if x has more digits than are reserved? What happens if it has fewer digits?
What print command would you use to print PI with a reserved width of 10 characters and only one digit after the decimal place? Does the reserved width include the decimal point and "e+" notation characters?
It's a common error to mistype the format string. What happens when you reverse the
%dand%fspecifiers in the program above?
What happens if you use double quotes when assigning a char? What happens if you put multiple letters within single quotes?
Use the ASCII table above to assign
c1andc2to numeric values that represent your initials. Then print them using both the%dand%cformat specifiers.
What is the program's output?
Put the following code into the editor below. What does it print out? What is its significance?
What happens when you try to modify one of the
constvariables? Is this a compile-time or a run-time error?
There is a bug in this code! Why won't it print "i is not 5" like the developer expected? Is this a compile-time or run-time error?
Without running it, what is the error in the code?
Use for-loops to print "hourglasses" of different sizes. Enter your code here:
// Paste your program here