Loading...
C

Function Calling

Function Call : Calling a C function is just by writing function name within closed round braces followed with semicolon. If we have to pass parameters then we can write parameters inside pair of round braces. Parameters are optional.

EXAMPLE PROGRAM :
#include<stdio.h>
#include<conio.h>
void main()
{
int number=50;
int *p;
clrscr()
p=&number; //stores the address of number variable
printf(“Address of number variable is %x\n”,&number );
printf(“Address of p variable is %x\n”,p);
printf(“Value of p variable is %d\n”,*p);
getch();
}

Leave a Reply

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