C
This commit is contained in:
17
w3school/structer2.c
Normal file
17
w3school/structer2.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
struct myStruct {
|
||||
int myNum;
|
||||
char myNam[30];
|
||||
};
|
||||
|
||||
|
||||
int main () {
|
||||
|
||||
struct myStruct s3 = {15, "Hello World!"};
|
||||
printf("%d\n%s", s3.myNum, s3.myNam);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
Reference in New Issue
Block a user