Repair the statement before a diagnostic

A student compiles this C program and receives a syntax diagnostic near return. Complete the diagnosis using the name of the missing punctuation mark.


C
#include "stdio.h"

int main(void)
{
    printf("Valve closed\n")
    return 0;
}


The preceding printf statement is missing a at its end.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Introduction to C Questions: