Solution for Exercise 14-3
ex1403
#include <stdio.h>
int main()
{
struct president
{
char name[40];
int year;
};
struct president first = {
"George Washington",
1789
};
printf("The first president was %s\n",first.name);
printf("He was inaugurated in %d\n",first.year);
return(0);
}
Output
The first president was George Washington
He was inaugurated in 1789
Copyright © 1997-2025 by QPBC.
All rights reserved
