i created a header file named "pop.h" and saved in tc->include folder.......the codes included in header file is shown below
#include<stdio.h>
#include<conio.h>
int ssipower(int,int);
void main()
{
clrscr();
printf("power=%d",ssipower(3,3));
getch();
}
int ssipower(int a, int b)
{
int i,c=1;
for(i=1;i<=b;i++)
{
c=a*c;
return c;
}
when i tried to use this header file in a pgm im getting errors...the pgm shown as follows
#include<stdio.h>
#include<conio.h>
#include"pop.h"
void main()
{
printf("power=%d",ssipower(2,2));
getch();
}
cld anybody help me how to get solution for this......