| | |
Pointer arithmetic homework question
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2005
Posts: 27
Reputation:
Solved Threads: 0
This is one of my hw question and I can't find the answer from the textbook.
Question: A function that modifies an array by pointer arithmetic (e.g., ++ptr) to process every value should have a parameter that is?
a) a nonconstant pointer to nonconstant data
b) a nonconstant pointer to constant data
c) a constant pointer to nonconstant data
d) a constant pointer to constant data
My guess is either a or d but i'm not sure...any help plz!!
Question: A function that modifies an array by pointer arithmetic (e.g., ++ptr) to process every value should have a parameter that is?
a) a nonconstant pointer to nonconstant data
b) a nonconstant pointer to constant data
c) a constant pointer to nonconstant data
d) a constant pointer to constant data
My guess is either a or d but i'm not sure...any help plz!!
![]() |
Similar Threads
Other Threads in the C Forum
- Previous Thread: HID Input
- Next Thread: c and shared libs ?? how to do it right?
| Thread Tools | Search this Thread |
* adobe api append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createcopyoffile createprocess() csyntax database directory dynamic execv feet fgets file floatingpointvalidation fork frequency function getlogicaldrivestrin givemetehcodez global gtkgcurlcompiling gtkwinlinux highest histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer license linked linkedlist linux list lowest matrix meter microsoft mqqueue multi mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scheduling segmentationfault send single socketprogramming stack standard strchr string suggestions system test testautomation testing unix urboc user whythiscodecausesegmentationfault win32api windows.h windowsapi






