Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Padding Err
#include <stdio.h> #include <stdint.h> #include <assert.h> #include <stddef.h> typedef struct { float re; float im; } IQ; typedef struct { uint8_t a; int8_t a_pad[3]; IQ b; } S1; typedef struct { uint8_t a; IQ b; } S2; int main(void) { assert(offsetof(S1, a) == offsetof(S2, a)); assert(offsetof(S1, b) == offsetof(S2, b)); // this should fail, but doesn't! return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Test 3
3D NO SE XD
Lab6 v0.5 Sin,cos,tan,cot
A141107_Potencia
Atleti
Spring 2017 Project 2 v1.6
poist
addition
BSEARCH() WITH STRUCT
prueba 3
Please log in to post a comment.