107./*Write a program to use of function call by value*/
#include<stdio.h>
#include<conio.h>
main()
{
int a;
a=200;
clrscr();
printf("\na=%d",a);
add(a);
printf("\nAFTER RETURN FROM FUNCTION a=%d",a);
getch();
}
add(int a)
{
a=a+200;
printf("\nIN FUNCTION a=%d",a);
return;
}
OUTPUT
A = 200
IN FUNCTION a = 400
AFTER RETURN FROM FUNCTION a = 200
No comments:
Post a Comment