- #1
lewis198
- 96
- 0
Hello guys, I was wondering:
say you have a structure:
struct tag{
int a
char b
int b
int c
}
how would you make int c equal to int a + int b for all variables of type struct tag? I have tried using pointers but it baffles me how you would make a global change in that all variable s of type struct tag would be affected, rather than just specific variables.
thank you for your time.
say you have a structure:
struct tag{
int a
char b
int b
int c
}
how would you make int c equal to int a + int b for all variables of type struct tag? I have tried using pointers but it baffles me how you would make a global change in that all variable s of type struct tag would be affected, rather than just specific variables.
thank you for your time.