Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C
how to globally initlailize a struct
Thomas Mario Adams III
Programming language:
C
2021-03-17 07:17:37
1
Q:
how to globally initlailize a struct
question
Code:
C
2021-04-08 23:29:53
struct Y { int r; int s; int t; }; struct Y y = { .r = 1, .s = 2, .t = 3 };
1
Tags
how
struct
global
Related
how to put a struct in another struct C
New to Communities?
Join the community