This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!
can you show me in my code where you would put the arr3=subtract(arr1, arr2). I understand swapping out the arr3 in the function declaration with results at top and bottom of code, as well as changing out the arr3 in the actuall function itself with results. Just not too sure about the main...
What? I provided that answer. I just needed some help in understanding it. And this is not a major/career, it was just one class I took as an option. I already have one degree in meteorology.
Think i got it....thanks for help.
#include <stdio.h>
#define SIZE 10
void subtract (int arr1[], int arr2[], int arr3[]);
int main()
{
int arr1, arr2, arr3;
int i;
printf ("Please enter 10 numbers for the first array: \n");
for (i=0; i<SIZE; i++)
scanf("%d", &arr1);
printf...
Luckily not a computer degree. Only computer class I have, and thus far, only problem i have not been able to figure out. I understand arrays mostly. It is the function part of it where I have to have it subtract the two arrays and place in array 3 that is getting me.
I have a problem I have been racking my brain with it. I am sure this would take all of 5 mins for a knowledgeable programmer; however, that I am not.
Question:
Create two arrays of integers, each holding ten elements of data. Create a third array of integers for a result array. Your main...
Just an opinion....
Jena = Overrated......has good performances, but pronunciation is a problem for her and its annoying. Voice is good, not great.
Jessica = Underrated......has problem with performing aspect, but voice is seriously strong.
Caleb = Great Rock performer, although is a 1 trick...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.