+ 1
Need help to solve this.
The starting address of a character Array S[20] is 0x00102H, if the size of array is 20 and each element of the array contains a single character; calculate the memory address of last location of character array. Calculate memory location of S[0]. Display the character at S[11].
15 Respostas
+ 3
Adding to ~ swim ~ , We add it by 20 because it is an array of characters and size of character is 1 byte. If it were to be an integer we would have to add the memory address by 4 * 20 or 80 bytes.
Also don't forget to the size is represented is decimal and memory address is in hex. Otherwise you will get weird answers. :)
+ 3
~ swim ~ Just wanted to clarify to others if they get confused. ;)
+ 2
Okay dude, let me see your code and I'll see what I can do. Follow the below guide to share your code in case you don't know.
But I don't write you code okay? I help you get it to work, as I can of course ...
https://www.sololearn.com/post/75089/?ref=app
0
What is there to calculate for memory location of S[0]?
That's the line at the second to last paragraph ...
0
Thats the second second thing we have to do in program
0
I wrote the question as i received
0
I need help to start,idk how to calculate memory
0
Actually dude, even I get confused by that instruction, now I'm not sure I could help you out ...
0
I am unable to get help from google too
0
Hi