Hello
How the set testinst[0] char and integer?
What am I doing wrong?
Code:struct test { char c; int n }; void somefunction(struct test *inst) { inst[0].c = 'a'; inst[0].n = 5; } int main() { struct test testinst[20]; somefunction(&testinst); return 0; }
Many thanks for help!