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++

Printable View

- 10-07-2009rupendranaiduGood interview Questions
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++ - 10-07-2009abachlerCode:
`DWORD MissingNumber = 5050;`

for(int x = 0;x<99;x++) MissingNumber -= array[x];

- 10-07-2009IceDane