Ad
Code
Diff
  • #define Hello "hello, world!" 
    #define World ;
    char* hi(void)
    {
      return Hello World
    }
    
    • char* Hi (void)
    • {char* ans;
    • asprintf(&ans, "Hello World.");
    • return ans;}
    • #define Hello "hello, world!"
    • #define World ;
    • char* hi(void)
    • {
    • return Hello World
    • }
Algorithms
Code
Diff
  • #include <stdint.h>
    #include <math.h>
    uint_fast8_t number_of_digits(uint64_t n)
    {
        return (int)log10(n) + 1;
    }
    • #include <stdint.h>
    • #include <math.h>
    • uint_fast8_t number_of_digits(uint64_t n)
    • {
    • return printf("%lu", n);
    • return (int)log10(n) + 1;
    • }
Code
Diff
  • foo = 0;
    • const foo = 12828721, bar = foo, baz = bar;
    • foo = 0;