ExplanationIn this program the binary bits corresponding to the Hex are obtained. The first two for
loops accomplish this. Exclusive OR operation with previous and successive bits obtains the gray
code. The MSB bits should not be changed.
7.8 THREE-OR MULTI-DIMENSIONAL ARRAYS
The C program allows array of two or multi dimensions. The compiler determines the restriction on it.
The syntax of multi-dimensional array as follows.
Arrayname [SI] [S2] [S3] ... [Sn]
Where, Si is the size of the ith dimensions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.