need help with programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deltamami0999
    New Member
    • Feb 2008
    • 16

    need help with programming

    Can someone help me explain these problems? I'm trying to teach my little brother how to code these ....
    1. Write a function that accepts a pointer to an array of integers and a single integer. Search the array for the integer and return a pointer to that element in the array. Do not use array notation.

    this is what we have so far: void printArray() (I know this is wrong)

    2. Write a function that accepts an integer, prompts the user for that number of values, loads the values into an array (without using array notation) and returns a pointer to the array to the calling function.

    3. Write a recursive function that excepts two integers, x and n, calculate x to the nth power and returns the result to the calling function.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    What language are you using?
    It might be better to post it in that forum, also

    ;)

    Comment

    Working...