PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Structs

< >
struct account { int account_number; char *first_name; char *last_name; float balance; };
Example from C3:
struct Test { int x; float y; String z; }
Example from Ion:
{ first : "Tom" , last: "Riddle" } // Structure with two fields {"first":"Tom","last":"Riddle"} // The same value with confusing style {center:{x:1.0, y:12.5}, radius:3} // Nested struct
Example from Jule:
struct Employee { first_name: str last_name: str salary: f32 }

Languages with Structs include C, C++, Objective-C, C3, Ion, progsbase, Jule, C2, Tick C, cooC, Real-Time Concurrent C

Read more about Structs on the web: 1.

HTML of this page generated by Features.ts

hasStrings.html 路 hasStructs.html 路 hasSwitch.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com