Computer Science, asked by arhamjamal007, 4 months ago

1. Which function is necessary to exist in each & every program?

1. void
2. sum()
3. main()
4. None of these .​

Answers

Answered by Anbarasuk
2

Answer:

I think option 3 is correct.

I hope this will help you.

Answered by MotiSani
0

The correct answer is OPTION 3: main().

  • The operating system launches a method called main() when a user begins a C programme.
  • For each function, there is a return type. The return type of a function is void when it returns nothing.
  • Furthermore, if the return type of the function is void, we can still use the return statement in the body of the function definition without providing any constants, variables, or other parameters by simply saying the 'return;' phrase, which symbolizes the function's termination.
Similar questions