if you want to copy the arrays that are declared in oneFunction() into the arrays declared in twoFunction() then onefunction() will have to call twofunction() passing it the two arrays. twofunction() will need two parameters, not one.
It is not a homework. I try to understand how arrays and functions work together. I start programming 3 weeks ago.
What do you expect you all programming experts if a new programmer try to learn how to program?
Try to remember your first steps. This is not an answer: "Use loops".
What is that mean? I tried with loops, i tried with sizeof, i try to solve my problem a couple of hours now.
What about if your programming teacher can't explain as you expect. I searched help at daniweb.
Sorry dude, but you'll get no sympathy from me on that front. The resources you have at your disposal would have given me a woody when I was first learning.
This is not an answer: "Use loops".
Did you learn anything at all from the code I provided? You pass the size of the array from the function that it was declared in because array parameters aren't actually arrays, they're pointers, and the size information is lost.
firstly, I will advice you to read what are loops and what is sizeof! then read more about C and its syntax and more about pointers. then read about functions and then about arguments. keep doing like this, and then try to implement various things in C. that will be beneficial to you and all. ;)
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...