Category Archives: c
Basic source/headers structure in c/c++
Just as another cheatsheet, took from here, as usually though. If you want to use a function in multiple source files (or rather, translation units), then you place a function declaration (i.e. a function prototype) in the header file, and the definition in one source … Continue reading
Posted in c, cpp, programming
Leave a comment
C dot and arrow (. / ->) – this is what I have to perceive
Arrow is just the dot version while accessing elements of a struct/class that is a pointer instead of a reference. Why parenthesis are in use? . is standard member access operator that has a higher precedence than * pointer operator. To make the … Continue reading
Posted in c, programming
Leave a comment