If you are using the POSIX shmget() type functions there is no default size, you have to specify the size when it is created. There are min and max sizes, usually defined by the constants SHMMAX and SHMMIN, I think these are defined in limits.h
You can call shmget() specifying a size of 0 but this means you want to use a shared memory segment that has already been created.