This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

static inside struct

Hi,

I have problem with struct. Here is my code, please correct me.

   struct main_func
                {
                        static int kval;
                        int temp3;
                        char buf[8];
                }main_f;

If I do not put "static" to "int kval", everything OK, Anyone has idea?

Thanks,
pak

0