For this question of GFG . I wrote this code . But it shows segmentation fault

前端 未结 0 1968
无人及你
无人及你 2021-01-12 20:31

https://practice.geeksforgeeks.org/problems/count-total-set-bits-1587115620/1#

int Count(int n){
    int count = 0;
    while(n){
        n = n & (n - 1);         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题