Guest_imported
New member
- Jan 1, 1970
- 0
If I use the structures here,
struct SNumeric
{
long nums[10];
}
struct SString
{
char car [10];
}
How would I create a function that when invoked with a SNumeric argument, prints the 10 elements one per line, but when a SString argument, prints all the chars in car on one line seperated by spaces.
struct SNumeric
{
long nums[10];
}
struct SString
{
char car [10];
}
How would I create a function that when invoked with a SNumeric argument, prints the 10 elements one per line, but when a SString argument, prints all the chars in car on one line seperated by spaces.