RAKHE said:
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
Please don't use silly abbrevations like "u". If you want us to take
the time to read your article, take the time to spell out the words.
After I cleaned up the code you posted (removing the "--------" lines,
adding a dummy member to the structure), it compiled without error.
My conclusion is that the code you posted differs from the code that's
giving you the warning. We're not mindreaders; we can't possibly tell
you what's wrong with your code unless you actually show it to us.
And you say you got a warning "something like" Incompatible
assignment. Don't tell us what the warning is like; tell us what it
really is.
Write a small complete compilable program that illustrates the
problem. Post it exactly (copy-and-paste, don't re-type), and tell us
what the problem is.
If you're going to post to a newsgroup, it's a good idea to read the
group for a while, or at least browse the archives. If you had done
so, this reply would not be necessary, because everything I'm saying
has already been posted here many many times.