Check out example codes for "functions return type in c". It will help you in understanding the concepts better.

Code Example 1

// Function Declaration		:: int function (int);
// Function Call			:: function( x );
// Function Return Type		:: int
// Function Definition		::
int function(int x)
{
	// statements;
	return x;
}

Learn ReactJs, React Native from akashmittal.com