How to block code section in C

1 Answer

0 votes
#include <stdio.h>

#if 0
int function(void)
{
    printf("function()");
}
#endif

int main(void)
{
    function(); // undefined reference to `function'
  
    return 0;
}
  
    
/*
run:


*/

 



answered Jul 28, 2017 by avibootz

Related questions

1 answer 210 views
1 answer 195 views
1 answer 187 views
1 answer 418 views
1 answer 287 views
287 views asked Apr 30, 2021 by avibootz
2 answers 432 views
1 answer 378 views
378 views asked Dec 11, 2018 by avibootz
...