我想知道是否有办法在运行时获取内存中c函数的大小.
我已经使用过这段代码,但它不起作用:
#include <stdio.h> #include <stdlib.h> #include <stddef.h> int main(void) { int t[10]; char c; offsetof(t, p); p: return 0; }
c
c ×1