Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0voice/cpp_new_features
/ main
Function
main
cpp_11/002_grammar_alignas.cpp:3–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include <iostream>
2
3
int main()
4
{
5
6
alignas(double) unsigned char c[1024]; //字符数组,但是却以double数据的形式对齐数据
7
alginas(16) char d[100]; //以16字节对齐
8
9
return 0;
10
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected