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
How could that be?
That wasn't the question. The question was "What sense would it make?".
And as I said, it would make sense in certain contexts, and C++ allows this functionality in classes, but it is not allowed in a structure.
Hi friends,
Thank for suggestion, Actually, I am new to C and beginner of mcs-51 as well.