Your First IC Program

The classic first C program is "Hello World."

void main()
{
   printf("Hello World\n");
}

The function main is like any other function except it is the function called when you press the Reset button on your RoboBoard.  You can also invoke main from the IC command line (after loading the file containing the main function) my typing "main();" at the command prompt.

The word void indicates that the main function returns no value.  The main function never returns a value, so sometimes the void is omitted.

What do you think that this program does? (Click on the answer you believe to be correct.)

  1. Sends the phrase "Hello World" to the laser printer.
  2. Prints the phrase "Hello World" on the RoboBoard's LCD display.
  3. None of the above.