0

Unknown keywords in C

I have been using C for about a week now and I was wondering what ‘static’ and ‘pub’ are?

25th Sep 2025, 11:39 AM
leo
leo - avatar
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
25th Sep 2025, 6:08 PM
Mihaly Nyilas
Mihaly Nyilas - avatar