Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
array of structures
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <stdio.h> typedef struct acc{ int acc_no; char acc_holder[10]; }acc1; int main(void) { acc1 a[10]; int accno,i; char holder; for(i=0;i<10;i++){ printf("Enter acc no:"); scanf("%d",&(a[i].acc_no)); printf("Enter acc holder name:"); scanf("%s",&(a[i].acc_holder)); //a[i].acc_no=accno;a[i].acc_holder[10]=holder; //printf("%d %s\n",a[i].acc_no,a[i].acc_holder); } for(i=0;i<10;i++){ printf("%d %s\n",a[i].acc_no,a[i].acc_holder); } //printf("Hello, world!\n"); return 0; }
run
|
edit
|
history
|
help
0
insertionrandom
Check Expression with Stack
Tisknuti retezcu a zmnena pismenek z v na m
kamo discriminant oprava
BPC UDP pr3 cv10 final
Empty struct
ulozeni ukazatele
prestupny rok
matice
struktura vzalenost