Q1. What is a character array?
Q2. How do we add another element in an array? For example;
1 2 3
|
int num=0;
int array[15]={2,4,5,7}
cin>>num // lets suppose num = 6
|
I want the program to place 6 at the correct position, which is {2,4,5,6,7}.
Similarly if I want to add 3 or 1 or 15 or 9, how can I do that? Also, if I want to delete a number from the array, how can that be done?
I was sick on the day when my teacher gave a lecture on this and now I have an assignment due Monday. Oh and in-case you're thinking that the above questions are my homework, well, they're not. My homework is a bit complex than this, I just need to understand the basics first.