Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why did C choose certain operators to be the symbol they are? [closed]

Exactly as the question says, for education purposes, why did C choose the operators they choose for their corresponding operations. For & of course its simply read "and" so this would make sense. However, I see no connection between & and address or % and modulus or * and pointer. This being said I also don't see a connection between pointer and any real symbol available on the keyboard. Why were these symbols chosen? Were they simply arbitrary? Thanks.

like image 463
Flayneorange Avatar asked Feb 06 '13 16:02

Flayneorange


1 Answers

If you look at the ASCII table (the standardized first 128 characters) you can see that the choice of characters are quite limited. They simply had no other choice of symbol for those operators.

Except the $, @ and the ` (backtick) characters all printable characters are used.

Probably the first computers C developed on didn't have these three characters in their character set.

like image 101
Calmarius Avatar answered Oct 31 '22 03:10

Calmarius