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 202 views
1 answer 187 views
1 answer 181 views
1 answer 412 views
1 answer 280 views
280 views asked Apr 30, 2021 by avibootz
2 answers 427 views
1 answer 369 views
369 views asked Dec 11, 2018 by avibootz
...