0
Unknown keywords in C
I have been using C for about a week now and I was wondering what ‘static’ and ‘pub’ are?
1 Respuesta
+ 1
it's a great question!
static: depends on the context, but has two possible usage.
static variable: keeps its value between function calls
static function: also known as global variable
pub: not exists in c, it exists in rust
I hope this helps