int* and int[] are not the same.
Your function has a return type of int, which works with return y[3],x[3];, but it does not do whatever it is that you probably intended for it to do. return y[3],x[3]; will return the value of the thirdfourth integer in the array called x.
Some information on how the comma operator works: http://stackoverflow.com/questions/54142/how-does-the-comma-operator-work x[3] when used in an expression is the thirdfourth value in the array called x, but when used in a function prototype it refers to an array that has 3 elements.
Now on to your actual question
would any of u tell me what bug does this have? ma compiler can't continue after the part "Number 1 :". :(
Would you please post the exact error your compiler reports? What compiler are you using? Is your entire code short enough to post here?