1. I know I'll get told off for not using int void main() and return 0; but when I tried using them the program wouldn't compile at all. Now it runs but puts out a strange number (i.e. when I input 123 it outputs 2293568
Code:#include<stdio.h> void main() { int num[3]; /*Sets array to 10*/ int count; printf("Enter a 3 numbered integer:"); for(count=0; count<3; count++){ getchar(); } printf("%d", num); return; }