Function Call by Passing and Returning Value in C Programming

When a function passes and returns value of variables then that function is known as ‘function call by passing and returning values’.

Program :

/* Program to demonstrate function call by passing and returning value.
Creation Date : 24 Nov 2010 12:31:10 AM
Author : [Technowell, Sangli] */

#include <stdio.h>
#include <conio.h>

int number(int n)
	return n;
int main(void)
	int number(int);
	int a = number(4);
	printf("\n Number is : %d",a);
	return 0;

Output :

 Number is : 4_

Leave A Comment

Your email address will not be published. Required fields are marked *