Having array[99] and i am trying to assigning the 1 to 100 numerical values in the array in any manner and no duplicate values in the array there will be one missing number . Find the missing number .
Give the solution in C or C++
Having array[99] and i am trying to assigning the 1 to 100 numerical values in the array in any manner and no duplicate values in the array there will be one missing number . Find the missing number .
Give the solution in C or C++
Missing number will now contain the missing number.Code:DWORD MissingNumber = 5050; for(int x = 0;x<99;x++) MissingNumber -= array[x];