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 119 views
1 answer 105 views
1 answer 98 views
1 answer 305 views
1 answer 163 views
163 views asked Apr 30, 2021 by avibootz
2 answers 280 views
1 answer 284 views
284 views asked Dec 11, 2018 by avibootz
...