0

i'm new to array. we were given this exercises to be solved:

but i have question about letters of ten elements, array integer which is called totals, contents of the character array called words, arrays elements and a lot of stuff that seems to be going with it. thank you.

can somebody please illustrate or post a sample of a function call with the following?

thank you so much for all your help. God bless!


1. declare a character - based array called letters of ten elements

2. assign the character value 'Z' to the fourth element of the letters array

3. use printf statement to print out the third element of an integer array called totals

4. use printf statement to print out the contents of the character array called words


give the C code of the ff. (each is independent of the other):

#define N 10
int i, a[N];

- initializing the elements of array a to zero
- assign the first element of array a to a value 100.
- assign the last element of array a to 50.
- assign the fifth element of array a to 10.
- assign the values 1 to 10 to the elements of array a.

4
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by Trentacle
0

Since you posted this as a POLL, not a request for help, my poll response is:

You may fail your course because you cannot follow instructions. Following instructions is a requirement in programming. See the Member Rules as requested when you joined.

-1

1

int *list
int main(){

list=new int[size];
for(int i=0;i<size;i++){
list[i]=0;
cout<<list[i]<<endl;
}
}
Votes + Comments
Use C code in a C forum
0

1

int *list
int main(){

list=new int[size];
for(int i=0;i<size;i++){
list[i]=0;
cout<<list[i]<<endl;
}
}

That's not C.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.