Can you solve this programming puzzle?

Dear Byte Size reader,

Today I present to you a peculiar problem regarding the following statement:

g(a).b[c] = 2;

Why wouldn’t it make sense to write that statement in C, while it’s potentially useful in C++?

Not sure? See if your friends can solve this one!

If you still can’t figure it out, I’ll have the solution up in a week.

 

Keep it byte-sized,

Dan

430 Total Views 2 Views Today

2 thoughts on “Can you solve this programming puzzle?”

  1. Dan! Appreciate keeping this world interesting, with puzzles that are simply impossible to solve for an average human being. Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *