I may have missed it in this video but you can also have static functions in C.
@Embedonix7 жыл бұрын
Good points! just a side note to people who might not know! You need to declare the variable as "extern" in a header file to be able to see it in other sources (or translation units).
@joris-rietveld5 жыл бұрын
Thanks for creating these videos, you are great at explaining stuff.
@emmanuelamoh71814 жыл бұрын
Thanks! This explanation was very helpful!
@bobesfanchi7 жыл бұрын
Good review. Thanks.
@JW-YT7 жыл бұрын
Thanks for the darker text, much easier to read...
@nikpapan4 жыл бұрын
So, if a class (object instance) has a static variable, do I need to use mutexes when setting/reading its value?
@bobesfanchi7 жыл бұрын
Can you please do a video explaining the difference between binary semaphore and mutex?
@TheBumi127 жыл бұрын
binary has only two states, mutex is more like a stack that can go to the negative.
@mingtiantao69285 жыл бұрын
very helpful
@RecycleBin05 жыл бұрын
Maybe do a vid on the @ operator in C (i.e absolute address)
@saturdaysequalsyouth4 жыл бұрын
There is no @ operator in standard C. Some non-standard C extensions support that feature but exactly how it's used might vary from compiler to compiler so you'll have to consult the documentation of whatever compiler you're using.
@therealaverma5 жыл бұрын
what a G great video
@timholstpetersen792 жыл бұрын
Members of classes, both functions and variables that are static have another feature in that they are accessible _without instatiating an object_ of that class. Example: class Test { public: int a; static int b; static void testFunc() {} }; int main() { Test::b = 2; // Ok Test::testFunc(); // Ok Test::a = 1; // ERROR Test *t = new Test(); t->a = 4; // Ok t->b = 6; // Ok t->testFunc(); // Ok std::cout
@mayue61956 жыл бұрын
does static just mean a special global variable but not all functions can access it?
@EmbeddedSoftware6 жыл бұрын
In effect, yes.
@kolhatkarchinmay4 жыл бұрын
Is "static" has to do something with "entrant" and "reentrant" function???
@saturdaysequalsyouth4 жыл бұрын
No
@sharifahmad68766 жыл бұрын
what is the difference between global and "local to the module".
@EmbeddedSoftware6 жыл бұрын
A global is accessible to every function in the application. "Local to the module" means accessible to function [below the declaration] in the same file.
@domaincontroller4 жыл бұрын
Would you be nice to let me know which tool and other apps you are using to record this video ?