?
Solved

I think the output should be value

Posted on 2014-08-20
2
Medium Priority
?
145 Views
Last Modified: 2014-08-20
I thought that
*
means
value in address
not address

print *(B+1) or B[1] or &B[1] //412
I think *(B+1) or B[1] should be value in 412 which is 4

why not value
0
Comment
Question by:rgb192
2 Comments
 
LVL 46

Accepted Solution

by:
Kent Olsen earned 2000 total points
ID: 40274321
Remember that B[2][3] is a two dimensional array.

B[0] is the address where row 1 occurs.  B[0][0] is the first item in the first row.
B[1] is the address where row 2 occurs.  B[1][0] is the first item in the second row.
0
 

Author Closing Comment

by:rgb192
ID: 40274933
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question