/* Input */ codes stops working when I modularize the code?
Example code 1 - [ OK ]
3Wah7S4K - Pastebin.com
But when I try to modularize the /* Input */ codes then I get all sorts of warnings and errors. I managed to fix most of them but get stuck here where it complains about my n variable.
Example code 2 - [ Error ]
v4HKi1ae - Pastebin.com
This is not the only warning but it's the first warning at this point.
Code:
C:\Test_Array\example_code_02.c In function `input':
90 C:\Test_Array\example_code_02.c [Warning] passing arg 1 of `calloc' makes integer from pointer without a cast