It seams very weird to me.I cant really understand whats happening.
I had a false on my code,decided to put a part of it on /*...*/
BUT when i run the program... this part of code is also executed!!!
EDIT: well this is the code i put in comments as you can see:
/*int menu()
{
int code;
while (1)
{
// printf("\nGive code:");
// scanf("%d",&code);
// int size=0;
// int i;
// i=findposD(code);
// printf("Position of code: %d\n",code);
// }
//}
*/
As you see I have some 'printf's which ARE RUNNING PROPERLY! I put the whole on /.../ an then each line in order to be sure...its still the same