Can someone please explain the answers to these computer science questions?
-
Consider the following variable declarations in C are placed starting at memory byte address 800. Assume 4 bytes to a word and each word is 32 bits. Assume variable array is a string ...show more
-
Answer:
the word stores an int 3 so that's in hex: 00 00 00 03 therefore the first byte is 0x00 for part b you start at 800 + 4(int) + 4(float) + 4(pointer) = string starts at 812 Now you have to understand that an array is really just a group of the same type of thing in memory ... a char is a one byte data type so big or little endianess doesn't apply. The memory in big or little endian for that char array will both look like a b c d e f if it was an array of ints then each individual element would have reversed bytes but you do not reverse the elements themselves. (I hope that makes sense) the element order stays the same.
7HZZD2Q4IZCUX26CDSH2RVWENA at Yahoo! Answers Visit the source
Related Q & A:
- Can someone please help me? Nursing?Best solution by Yahoo! Answers
- Can someone please help me with my iPod?Best solution by Yahoo! Answers
- Can someone please help me to make a hotmail.fr address?Best solution by Yahoo! Answers
- Can someone please help me with my Spanish homework?Best solution by Yahoo! Answers
- Can somebody please explain to me what spatial perspective is?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.