arrays

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vasu iyer
    New Member
    • Aug 2010
    • 2

    arrays

    sir we have two arrays so how to add two arrays
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    This looks like a direct homework question!

    Define two arrays first and one by one add the values of both arrays' cells using iterative loops. Try this logic and write code. If stuck anywhere then please do ask here again.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      You should start by carefully defining the problem. What does it mean to add two arrays? Is the result another array or is it a single value? Do you only need to support one-dimensional arrays? Are the two input arrays required to be the same size?

      Comment

      Working...