Structure Pointer



Hi
I am having some warning when i used like this
struct creat_table {
--------
----------
};
struct creat_table *table();
int main()
{
struct creat_table *p;
p =table();
}
struct creat_table *table()
{

}
I used to get Some warning like
Incompatible assignment Please if any body find solution can u
expalin it

.



Relevant Pages

  • Re: Is this legal ?
    ... I wanted to have a union which has two structures in it. ... b.c:10: warning: ANSI C forbids member declarations with no members ...
    (comp.lang.c)
  • Re: first program with pointers to structures and realloc....
    ... You haven't yet told the compiler what type struct tablevalues is! ... double double_x, int var1, ...
    (comp.lang.c)
  • Re: Is this legal ?
    ... I wanted to have a union which has two structures in it. ... b.c:10: warning: ANSI C forbids member declarations with no members ...
    (comp.lang.c)
  • Re: Why compiler not generating any warning ?
    ... >> But on compilation I don't get any warning message. ... >Because you have explicitly cast pstr_junk to (int *), ... >told the compiler "be quiet, ... >of the struct are ints? ...
    (comp.lang.c)
  • Re: Cheops-ng under SuSE
    ... configure: failed program was: ... /* We use char because int might match the return type of a gcc2 ... configure:1749: warning: implicit declaration of function 'exit' ... configure:2035: checking whether struct tm is in sys/time.h or time.h ...
    (alt.os.linux.suse)