SEARCH:
  WebSite  
TheSpringGarden
Plants & trees, gardening products & equiptment, homedecor
SunglassEyeglasses
All stunning brand names sunglasses at the great prices
DIYHomeSupplies
Do it yourself woodworking projects & home remodeling supplies
UnitedPlus
Gift Ideas. Diecasts, Figurines, American Heroes, and much more
CarPartsAccessoriesEtc
Search and shop for auto parts & accessories online. Simple & Convenient
Sewing Machines
Top notch sewing machines, vacuums, and appliances.
For home or commercial.
Patio & Landscape
Ready for family united BBQ in the summer? A Large selection of outdoor furnitures
FontsWorld
Looking for those cool fonts? Here, variety of all around the world fonts. Free Download.
 

Go Back   Freemason Hirams Travels Masonic Forums > Education & Reference > Homework Help

Homework Help Homework Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2008, 03:59 PM
Member
 
Join Date: Feb 2008
Posts: 9
Rep Power: 0
Ronnie has a spectacular aura about
I need help with my C homework i dont understand how to do this?

1) [HW] practice with pointers: Write a program that does not use array
subscripts within any loops but instead uses pointer arithmetic:
? Create an array of ten floating point numbers and initialize it with a for
loop with the values 101.0, 102.0, ..., 110.0 .
? Print the address of the array.
? Write a for loop to print for every element in the array, its subscript, its
address, its offset in bytes from the beginning of the array and its value.
Your output should look similar to this:
array @ BFE44C50
array[0] @ BFE44C50[+ 0]: 101
array[1] @ BFE44C58[+ 8]: 102
array[2] @ BFE44C60[+16]: 103
array[3] @ BFE44C68[+24]: 104
array[4] @ BFE44C70[+32]: 105
array[5] @ BFE44C78[+40]: 106
array[6] @ BFE44C80[+48]: 107
array[7] @ BFE44C88[+56]: 108
array[8] @ BFE44C90[+64]: 109
array[9] @ BFE44C98[+72]: 110
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i need serious help with my homework that i dont understand!!! i ask someone out of stefineg Homework Help 0 03-27-2008 02:45 PM
I need math homework help please. We are studying parabolas and I dont understand.? marissa kalinskanska Homework Help 0 03-02-2008 07:41 AM
I need help with my music theory homework. i dont understand intervals... Tiffany C Homework Help 0 02-29-2008 05:17 PM
need help with my music theory homework. i dont understand intervals with flats and Tiffany C Homework Help 0 02-29-2008 04:10 PM
need help with my music theory homework. i dont understand intervals with... Tiffany C Homework Help 0 02-29-2008 03:10 PM


All times are GMT -5. The time now is 05:55 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154