Get comfortable with simple output, variables, and data types by practicing them in a simple program. Learn how to submit assignments on GitHub.
Write a program initials.c
to print your initials formed by rows of pound signs. For instance:
### ### ###
### ### ###
### ### ###
### ###########
### ### ###
### ### ###
######### ### ###
In a text file assignment1.txt
, answer the following questions:
-
What is a compiler? Explain thoroughly and in your own words.
-
Are the following errors compile time errors or runtime errors? Why? Explain the difference.
a.
int x = 2
b.
float 1num = 3.0;
c.
double num = 4.0 / 0.0;
-
What, if anything, is wrong with the following code?
#include <stdio.h> void main() { float x = 41.5; printf("The value of x is %d", x); Return 0; }
Please include your name and a description in a comment at the top of your code files. Please also include your name at the top of your assignment1.txt file.
All files must be submitted via GitHub by 10:00am 7/21.