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

struct student
{
int age;
int grade;
char name[40];
}

int main ( )
{
/* declare two variables */
struct student s1;
struct student s2;

s1.age = 19;
s1.grade = 9;

printf (s1.name, "John Bighimer");

s2.age = 22;
s2.grade = 10;

printf (s2.name, "Batman Jokerson");
printf ("Student: %s, %d\n", s1.name, s1.age);
printf ("Student: %s, %d\n", s2.name, s2.age);

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