two questions:
1. Is it possible to print the result of a function such as if it has an enumeration type value. Lets say I invoke function animal() and it returns to the calling environment the word " bird" : Is there a printf command to print bird like:
or something like that?Code:printf("%f", animal())
2. what is the printf command that will display the values of an array such as:
Code:int a[8] = {1,2,3,4,5,6,7,8}
so that it will look like this on the display:
1 2 3 4 5 6 7 8
I know these are probably extremely simple questions, but I'm just getting into C and any info would be great.