Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
Project 5 v.02
//gcc 5.4.0 #include <stdio.h> #include <string.h> typedef struct{ char firstname[20]; char lastname[20]; }name typedef struct{ char student_ID[10]; name studentname; char Grade; char Major[10]; }record; int main(void) { record records[10]; records[0].student_ID=1001; strcpy(records[0].studentname.firstname,"Clock"); strcpy(records[0].studentname.lastname,"Explosion"); strcpy(records[0].Grade,"A"); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
My C Code
Area
C assignment due sunday
Newtons method
How strxpy work
AC_setting_example
Max of arrays
Project 3 part 2 Book v1
ele 888 lab 1 part 1
Name pipe
Please log in to post a comment.