Quantcast
Viewing all articles
Browse latest Browse all 10

Semantics

When I first learned about pointers back in second year, there were a bit of confusion among my class mates. I wasn’t confused but I wrote but i wrote pointers like this:

char* a = “bla”

The above made a lot of sense. I read it as “a character pointer named a”. I never understood why people insist on writing

char *a= “bla”

How does one read the above, and why doest make sense to so many programmers out there ? the * is part of the type description not the name of the variable it is not a char named *a so why is it written like that.

Maybe someone will tell me some day, but until then I will continue to correct pointer declarations quietly. One pointer at a time.


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 10

Trending Articles