inline in C++

this code does not works
extern "C"
{
int printf(const char*,...);
int scanf(const char*,...);
int kbhit(void);
void clrscr(void);
}
inline int add(int,int);
int main(void)
{
int x=0,y=0,z=0;
clrscr();
printf("enter two number");
scanf("%d%d",&x,&y);
z=add(x,y);
printf("%d",z);
while(!kbhit());
return 0;
}
inline int add(int x,int y)
{
return x+y;
}

Last edited on
Could you use the code tags. Little tough to read.
closed account (zb0S216C)
JAI SINGH wrote:
"this code works"

...then, there's no problem, is there?

Wazzak
Topic archived. No new replies allowed.