hello, I'm new to c/c++ programming, I've read through a lot of beginners tutorials and understood quite a few things. I'm currently trying to write a program that modifies a struct by using a function that has pointers to the struct as arguments. Unfortunately it's not working. I think something's wrong with my function prototype. Can u please take a look and help me out. Thanks
Code:#include <stdio.h> void full (struct Alpha*); int main() { struct Alpha { char id; int age; }; Alpha toni; full(&toni); printf("id=%c age=%d",toni.id,toni.age); return 0; } void full (struct Alpha *p){ p->id='x'; p->age=19; }