you might want to work with loops situated like this instead. This is is a work in progress.
something you can tinker with to see how this works.
Code:
#include <stdio.h>
int main(void)
{
int d,b;
int ChnCount =2;
char physicalChannel[ChnCount][12];
char bigstuff[30];
int count = 0;
int wantCount = 0;
// printf(" Enter the ID no. (0 to 39) for channel %d of %d: ",d+1, ChnCount); /*------------*/
printf("enter amount here --> ");
scanf("%d",&wantCount);
while ( count <= wantCount)
{
if ( count == wantCount )
{
for ( b = 0; b < wantCount; b++)
{
printf("%c\n", bigstuff[b]);
}
}
printf("now enter something else here -->");
scanf("%s",&bigstuff[d++]);
count++;
printf("count %d wantCount %d\n", count, wantCount);
}
return 0;
}
you still have to figure out how to take in more then one char then to print it out properly as stated in a post above this one.
Code:
bigstuff [element number plus size is ? goes in here ] = 1 (digit)
bigstuff [element number plus size is ? goes in here ] = 2 (digits)
they are going to fluctuate. So you'll have to devise a means to deal with that.