Self-taught hobbyist turned embedded systems designer, mainly programming 8-bit MCUs and designing PCBs.

Re: Another Noddy Question

Reply posted 2 months ago (06/08/2021)
The exact size-in-memory of a struct may depend on the data types, the architecture, the compiler (including keywords/directives like "packed" in C) and even...

Re: Another Noddy Question

Reply posted 2 months ago (06/08/2021)
Putting a unique, never-valid-data value at the end of a list - usually called a "sentinel" - is a classic trick (see C-style strings). But as always, there are...Pros:...

Re: Questions re Coding Efficiency

Reply posted 4 months ago (03/30/2021)
Within a single if statement, most compilers will default to a "lazy evaluation" of the conditions - e.g. if the operator is an OR and the first (leftmost) condition...

Re: What are the odds? (Random Numbers)

Reply posted 6 months ago (02/01/2021)
Indeed, the correct value is hopelessly not 50% - it's actually 2/3 of the produced numbers being below that midpoint. This is caused by careless use of the modulo...

Re: What are the odds? (Random Numbers)

Reply posted 6 months ago (02/01/2021)
There's an Arduino riddle I posted once in my blog: if you produce lots and lots of (pseudo-)random numbers in the range 0 to 1,431,655,765, what percentage of...

Re: Software expands to fill the memory available

Reply posted 2 years ago (11/14/2019)
A little while ago, I used a certain software product to develop a minimal Android App: A blank screen, except for a button in the middle that allowed the user to...

Use this form to contact igendel

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address