i want to assign a returned value of a function into a Variable in C++, but the program is exit without any output.
int numberPosition = binarySearch(arr, num