How can i make "Display" fuction work?
thanks
ThanksCode:#include <stdio.h> #include<string.h> #include<stdlib.h> //********* prototype******// void Display(); struct info { int test; }; //*********M a i n **********/ void main() { struct info inf; printf("Enter number :"); scanf("%d",&inf.test); Display(inf.test); //printf("\n show: %d",inf.test); } //*******Function**************// void Display() { struct info in; printf("\n show: %d",in.test); }