What is CHAR_BIT==16 means in this code? It doesn't compile, I can not figure out the reason and what will be in puts so code will compile?
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
static_assert(CHAR_BIT==16,"16 bit falsely assumed");
int main()
{
puts("hello world this");
return 0;
}
CHAR_BITtells you how many bits in a byte.static_assert(CHAR_BIT==16, ...);in some code, there should be some hints as to why that check is done somewhere close to where you found that assertion._Static_assert(andstatic_assertvia a macro inassert.hI suppose) - Wow, that made my day. I've wanted that many times but just assumed ... stoopid me. Many thanks!