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 130 views
1 answer 113 views
1 answer 107 views
1 answer 318 views
1 answer 119 views
119 views asked Nov 17, 2023 by avibootz
1 answer 139 views
1 answer 174 views
174 views asked Apr 30, 2021 by avibootz
...