Simvik

Print a line

Send text to the output with printf. An easy embedded C problem (First steps in C), run and graded in the browser.

easy · First steps in C · printf

printf writes text to the output. On a real board that output usually goes to a serial port, and it is the first debugging tool everyone reaches for.

Make greet print exactly Hello, board! followed by a newline. A newline is written \n inside the quotes.

Starter code

void greet(void) {
  // void means this function returns nothing. It only prints.
}

Example tests

Prints the greeting

greet();

Expected output:

Hello, board!

Learn it first

More First steps in C problems