Thank you all for the quick replies!
Type: Posts; User: circuits2
Thank you all for the quick replies!
Does this carry through if there is a structure within a structure?
typedef struct{
int a;
} myStruct2;
typedef struct{
myStruct2 struct2;
What is the difference between the two methods of accessing an element within a structure and when is each appropriate?
typedef struct{
int a;
int b;
} myStruct;
int main(void)
{
First thing that jumps out at me:
main() should be "int main (void)" and you should have a return statement at the end of main.
also:
scanf("%d", &answer);
you forgot the &
I don't see where you declared "rate". Can you post your actual code?