O bosses help Thanks brother Eldest brother is the most handsome coolest
CodePudding user response:
I must first initialize it in the main, the back of the function calls, nor is the purpose of you?
CodePudding user response:
No, I want to use the function
CodePudding user response:
First of all, your child function, three incoming isn't necessary, all incoming values are not used
#include #include # define N 10 Int a [N]. int i; Int j; Int temp (); Int main () { Temp (); system("pause"); return 0; } Int temp () { for (i=0; i{ Scanf_s (" % d ", & amp; A [I]);//it's the wrong line } printf("\n"); for (j=0; J{ for (i=0; i{ If (a [I] & gt; A [I + 1]) { Int t=a, [I]. A [I]=a, [I + 1]. A [I + 1]=t; } } } for (i=0; i{ Printf (" % d ", a [I]); } return 0; }