H
herrcho
Here is the code..
#define NAME "MEGATHINK, INC"
#define ADDRESS "10 Megabuck Plaza"
#define PLACE "Megapolis, CA 94904"
int main()
{
starbar();
printf("%s\n",NAME);
printf("%s\n",ADDRESS);
printf("%s\n",PLACE);
starbar();
}
#include <stdio.h>
#define LIMIT 65
starbar()
{
int count;
for (count=1;count<=LIMIT;count++)
putchar('*');
putchar('\n');
}
it shows me the following warning message
implicit declaration of function 'starbar'
implicit declaration of function 'printf'
control reaches end of non-void function
Could anyone explain why this happens.. i'm still having hard time
learning C
thanks in advance.
#define NAME "MEGATHINK, INC"
#define ADDRESS "10 Megabuck Plaza"
#define PLACE "Megapolis, CA 94904"
int main()
{
starbar();
printf("%s\n",NAME);
printf("%s\n",ADDRESS);
printf("%s\n",PLACE);
starbar();
}
#include <stdio.h>
#define LIMIT 65
starbar()
{
int count;
for (count=1;count<=LIMIT;count++)
putchar('*');
putchar('\n');
}
it shows me the following warning message
implicit declaration of function 'starbar'
implicit declaration of function 'printf'
control reaches end of non-void function
Could anyone explain why this happens.. i'm still having hard time
learning C
thanks in advance.