expressions

C++ Core Guidelines: More Rules for Expressions

I know the headline to this post is a little bit boring: More Rules for Expressions. Honestly, this post is about code hygiene, because I will mainly write about pointers.

Read more
Add CommentViews: 4776

C++ Core Guidelines: Rules for Expressions

Today's post is about expressions. You should avoid complicated expressions, you should know the precedence rules for arithmetic or logical expressions, and you should know the order of evaluation of expressions. Having the wrong precedence rules for expressions in mind or assuming an evaluation order for expressions which is just wrong or not guaranteed are the main reasons for undefined behaviour. I know that's a lot to digest. Let's start.

Read more
Add CommentViews: 4539

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 2848

All 1580584

Currently are 137 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments