Here is a rough draft,
check this out i wrote the program with few corrections, but it prints 5, you can run it online here, it returns the final value of count as 1 which adds with 4 in main() , i think it is not recognizing static for count.
https://onlinegdb.com/S1dNCGOJ4
Answer Will Be 11. In the Value program the count will be incremented depends on the number of one present in the binary representation of the X passed to the value function. And the final answer of the z depends on the last value in the array + the count all the number present in the array.
Answer Will Be 11.
In the Value program the count will be incremented depends on the number of one present in the binary representation of the X passed to the value function.
And the final answer of the z depends on the last value in the array + the count all the number present in the array.
64.3k questions
77.9k answers
244k comments
80.0k users