Mais conteúdo relacionado
C Programming Structures.pdf
- 6. , e
,., U€tam
': {
intac n:
ch~rna!
intbal
l•
.1~
a;i
VOi _~~
~
r-u-
S: ~~
pr
_si:an
priutf(
•.11am.-
:fet1;bl
- 7. ,,,rite a prog1r:im1.:i11rnr1111. . ·11t1
111J11,. 1
111;::'.:.:~ri1111
1
:~~:tl1]1Jlll::1
e~..:!!f!il, 1111::'1111.i 1111:l1111::!~~11D.t st1ru1cture
#include<stdio,ul1::::::,.. : ...
st1-uctstud ..:1
:.····•-·· •• • ·- ; - : , .• ,_._
{
int id; ._ ...
charname[20Jfl!i/~
int 1narkl,1na_
1·~I;•·
int total;
int avg;
... ....}b._
;__....................~............??J,
voidmainO-
{
p1·intf(''nEntertlj·~:~!!!Ile11)
scanf('' 0
Yocl -
~'tJ;S-_o/ocl{~?~ifrie(Cl.~l: :• ·,..•!4_
,~;
~·:1ia11ie,~
&b.mark1,&b.mal'k2;'&!'bim:1.iij);'f1fi;R'-/i
b.total-b.markl+h.mark2{+b.111ark3.
;
~ . -
b.avg=b.total/.3:
;, l
printf(" %-
cl o/os ·o/i~d -cvo,d •Yod n~1,bJd,b,nn:a1ne~~ b..111arkl, b..1nark2,
b.mark3); !
l
l
- 13. Passln rhesltlJ~ ,
ararnerer ro tlile ftt,
1i1
f1
·'.
#include<stdi o.h>·
#incl ude~s{dlIbd1>
typedef struct stud
{
int roll_no:
char narne[20];
float marks; 11
}st: 1j
void print_rec(int,clit
void main()
{
ans;
, ,e~
st.marks);
•
e ihe More
; rmJ
- 15. *NE.
/ Ast~
struc
#incl
. t :/'
...,.,,.,,.,,n
,;,}~...., /
/
stru,,
ints
I
II'
cba~I
{
struct,
clrscr 111
Ptintf( ,
'');
/,
·,sdob.date,
",rJ;
,·•11 t