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

Parents Reply Children
No data
More questions in this forum