PDA

View Full Version : Passing structure as function argument



anon10501
14-04-2013, 10:36 PM
Hello sir

As per the slide 6.3 "Passing structure as function argument".
I am trying to exute the program but it shows error of "undefined reference". Please let me know what I am doing wrong to give the commands. I had also attached the snap shot regarding the same.

anup
15-04-2013, 05:56 AM
Anon10501,

You have not defined the function my_func, you have declared it, but you have defined 'myfunc'. These errors are not hard to debug and it is recommended that you check your code multiple times to see what is going on.

Thanks,
Anup