Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想为int 类型分配一块内存并将所有位设置为 ON(1) 之后我如何才能读回该内存块。
int *type = malloc(sizeof(int); memset(type,~0,sizeof(int));
回读不过是,
int value = *type;
并将value所有位设置为1。
value