sorcerer_see: (Default)
#include <stdio.h>

typedef struct
{
int x;
int y;
}
point;

typedef struct
{
float radius;
point center;
}
circle;             

int main ()
{
point p;
p.x = 3;
p.y = 4;

circle c;
c.radius = 3.14;
c.center = p;

printf ("Circle radius is %2f, center is at (%d, %d)", c.radius, c.center.x, c.center.y);

return 0;
}

Profile

sorcerer_see: (Default)
sorcerer_see

October 2025

S M T W T F S
    12 34
56 7 8 9 10 11
12 1314 15 16 1718
19 2021 22 23 2425
2627 28293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 16th, 2026 02:29 am
Powered by Dreamwidth Studios