Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
232 Programming and Data Structures
Oil
1 0 10 0
10 0 0 110 0
1
0 0 1 110 1
10 1 0 1111
10 1
1
1110
11 0 0 10 10
110
1 10 11
111
0 10 0 1
1
11 1 10 0 0
Explanation In 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.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343