Why it doesn't work properly when I put the int into function and function2?
Code:#include <stdio.h> #include <stdlib.h> void function () { int a, b, c; printf("Input 3 intergers: "); scanf("%d %d %d",&a, &b, &c); } void function2 () { int a, b, c; printf("%d %d %d\n",a, b, c); } int main(void) { function (); function2 (); system("pause"); }