I can't seem to find anything on how to print out an array of characters:
I want to make a table of dashes such as below:
----------
----------
----------
How would I go about doing that?
so far, my code goes like this:
int i, m=0;
char bufferarray [30];
for (i=0; i <31; i++)
{
bufferarray[i] = '\45';
}
for (m=0; m<i; m++)
{
printf("%s \n", bufferarray);
}