return Keyword

Keyword Index

Exits the function.

return exits immediately from the currently executing function to the calling routine, optionally returning a value. The syntax is:

return [expression];
For example,
int sqr (int x)
{
  return (x*x);
}