Welcome to the first lecture. This is what you will see most of the time. A text in the beginning, explaining all the things you need to know for the lecture and what you have to do, then a text-editor, where you supposed to edit the code to complete the given task and three buttons below the editor. The execute Button will compile and execute your code, the submit button will do the same and also check, if your solution is correct. If your solution was correct, you can press the continue button to go to the next lecture.
Now back to the lecture. This is probably the most simple program. That is why you find it in almost any basic programming book or tutorial.
Ignore for now the
#include <stdio.h>. It is not important for now. Below that you see the main-function.
It marks the entriepoint for your program.
From there on the computer will exactly execute what you write in order (with exceptions we won't go into). That is what is commonly know as imperative programming.
The first thing in our program is a comment and is initiated by double slashes "//". Everything after that in the same line will be ignored by the compiler and therefore not be executed. For longer comments you can also surround it by "/* */" so you don't have to type double slashes in every line.
So now to the exciting part. The line:
will write text to the console. In this case
DEFAULT OUTPUT NOT OVERWRITTEN- There has been an error with this exercise.