Skip to Main Content
Data Structures Using C, 2nd Edition by Pearson
book

Data Structures Using C, 2nd Edition by Pearson

by A. K. Sharma
May 2024
Intermediate to advanced content levelIntermediate to advanced
521 pages
14h 12m
English
Pearson India
Content preview from Data Structures Using C, 2nd Edition by Pearson
198 Data Structures Using C
x = 15;
printf (“\n Value of x = %d”, x);
printf (“\n Address of x = %d”, &x);
The output of the above program segment would
be as shown below:
Value of x = 15
Address of x = 2712 (assumed value)
The contents of variable x (memory location 2712) are
shown in Figure 5.2.
It may be noted here that the value of address of x
(i.e., 2712) is assumed and the actual value is dependent on
machine and execution’ time.
5.1.2 The ’*’ Operator
The `*´ is an indirection operator or `value at address operator´. In simple words, we can
say that if address of a variable is known, then the `*´ operator provides the ...
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

Data Structures Using C

Data Structures Using C

Samir Kumar Bandyopadhyay, Kashi Nath Dey
Intermediate C Programming, 2nd Edition

Intermediate C Programming, 2nd Edition

Yung-Hsiang Lu, George K. Thiruvathukal

Publisher Resources

ISBN: 9781299831582