fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int const God = 1;
  5. int const *const Father = &God;
  6. int const *const*const Son = &Father;
  7. int const *const*const*const HolySpirit = &Son;
  8. int toAssert1 = ( *Father == **Son == ***HolySpirit == God );
  9. int toAssert2 = ( Father != Son != HolySpirit );
  10. printf( (toAssert1 && toAssert2) ? "Assertion passed." : "Assertion failed.");
  11. return (toAssert1 && toAssert2) ? 0 : 1;
  12. }
  13.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Standard output is empty