senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. zunda (zundan@mastodon.zunda.ninja)'s status on Monday, 07-Feb-2022 05:34:53 JST zunda zunda

    long catとlong long catおんなじなん?

    $ uname -srmDarwin 20.6.0 x86_64$ cat longcat.c; gcc longcat.c && ./a.out#include <stdlib.h>#include <stdio.h>#define cat int#define printsize(t) (printf(#t ": %lu bytes\n", sizeof(t)))

    intmain(void){ printsize(short cat); printsize(cat); printsize(long cat); printsize(long long cat); return 0;}

    short cat: 2 bytescat: 4 byteslong cat: 8 byteslong long cat: 8 bytes

    In conversation Monday, 07-Feb-2022 05:34:53 JST from mastodon.zunda.ninja permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.