Computer Science, asked by rajkhan851, 11 months ago

Can First statement of a function be optional?

Answers

Answered by Anonymous
1

Answer:

Parameter declarations are optional. Functions that take no parameters are written without parentheses. The function body begins with the keyword IS (or AS ) and ends with the keyword END followed by an optional function name.

Answered by Anonymous
0

The first statement of a function can be optional.

  • A function is a subprogram with the ability to take parameters and return one value.
  • The declarations on parameters are optional.
  • Functions which do not take parameters will be written without parentheses.
  • The body of the function starts with the keyword Is or As and ends with the keyword END followed by an optional name.
Similar questions