Struct in julia to C structs

embedding

#1

Hello, julia structs is the same as C structs or not? i.e.:

struct Test
    x::Int
    y::Int 
end

will this be the same as this?

struct {
    int x;
    inx y;
}

#2

No, use Cint instead.


#3

i.e.:

struct Test
    x::Cint
    y::Cint
end

for me the main thing is that no additional fields are added to the struct after compilation.


#4

Yeah, they have the same data layout, read it in the documentation