The static keyword in C

  Рет қаралды 13,483

Siemens Embedded

Siemens Embedded

7 жыл бұрын

Пікірлер: 26
@Jose_T131
@Jose_T131 2 жыл бұрын
Excellent content, subscribed 🤝
@saturdaysequalsyouth
@saturdaysequalsyouth 4 жыл бұрын
I may have missed it in this video but you can also have static functions in C.
@Embedonix
@Embedonix 7 жыл бұрын
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-rietveld
@joris-rietveld 5 жыл бұрын
Thanks for creating these videos, you are great at explaining stuff.
@emmanuelamoh7181
@emmanuelamoh7181 4 жыл бұрын
Thanks! This explanation was very helpful!
@bobesfanchi
@bobesfanchi 7 жыл бұрын
Good review. Thanks.
@JW-YT
@JW-YT 7 жыл бұрын
Thanks for the darker text, much easier to read...
@nikpapan
@nikpapan 4 жыл бұрын
So, if a class (object instance) has a static variable, do I need to use mutexes when setting/reading its value?
@bobesfanchi
@bobesfanchi 7 жыл бұрын
Can you please do a video explaining the difference between binary semaphore and mutex?
@TheBumi12
@TheBumi12 7 жыл бұрын
binary has only two states, mutex is more like a stack that can go to the negative.
@mingtiantao6928
@mingtiantao6928 5 жыл бұрын
very helpful
@RecycleBin0
@RecycleBin0 5 жыл бұрын
Maybe do a vid on the @ operator in C (i.e absolute address)
@saturdaysequalsyouth
@saturdaysequalsyouth 4 жыл бұрын
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.
@therealaverma
@therealaverma 5 жыл бұрын
what a G great video
@timholstpetersen79
@timholstpetersen79 2 жыл бұрын
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
@mayue6195
@mayue6195 6 жыл бұрын
does static just mean a special global variable but not all functions can access it?
@EmbeddedSoftware
@EmbeddedSoftware 6 жыл бұрын
In effect, yes.
@kolhatkarchinmay
@kolhatkarchinmay 4 жыл бұрын
Is "static" has to do something with "entrant" and "reentrant" function???
@saturdaysequalsyouth
@saturdaysequalsyouth 4 жыл бұрын
No
@sharifahmad6876
@sharifahmad6876 6 жыл бұрын
what is the difference between global and "local to the module".
@EmbeddedSoftware
@EmbeddedSoftware 6 жыл бұрын
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.
@domaincontroller
@domaincontroller 4 жыл бұрын
Would you be nice to let me know which tool and other apps you are using to record this video ?
@carsonholloway
@carsonholloway 4 жыл бұрын
Why are there classes? This is C++, not C.
@neonik6204
@neonik6204 6 жыл бұрын
Is this about java or c programming :(
@EmbeddedSoftware
@EmbeddedSoftware 6 жыл бұрын
The title says it: C.
@jpmorgan187
@jpmorgan187 Жыл бұрын
cool thanks for the good explanation!
Weird Parts of C you probably never heard of...
38:06
Tsoding Daily
Рет қаралды 55 М.
inline functions
5:45
Siemens Embedded
Рет қаралды 7 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 18 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 55 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Becoming an embedded software developer
4:58
Siemens Embedded
Рет қаралды 41 М.
The Static Keyword in C
4:55
Jacob Sorber
Рет қаралды 36 М.
the cleanest feature in C that you've probably never heard of
8:13
Low Level Learning
Рет қаралды 130 М.
Header files and libraries (Kevin Lynch)
9:32
Northwestern Robotics
Рет қаралды 93 М.
Static Keyword in C Part 2/2
7:07
HackerCS
Рет қаралды 20 М.
The Most Useless Keyword in C?
10:26
Jacob Sorber
Рет қаралды 68 М.
Static Local Variables | C Programming Tutorial
6:17
Portfolio Courses
Рет қаралды 8 М.
Rust and RAII Memory Management - Computerphile
24:22
Computerphile
Рет қаралды 219 М.
How to use the volatile keyword in C?
6:48
Jacob Sorber
Рет қаралды 68 М.
Mastering Picture Editing: Zoom Tools Tutorial
0:52
Photoo Edit
Рет қаралды 507 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 3 МЛН