Program Structure Flashcards

1
Q

include

Match the parts of the program with its definition.

int main()
{
/* my first program in C */
printf("Hello, World! \n");

return 0;
}

A
  • # include = Preprocessor Command
  • int main() = The main function where the program execution begins
  • /* my first program in C */ = comments
  • printf(“Hello, World! \n”); = function available in C
  • return 0; = terminates the main() function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly