Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

C Programming Structures.pdf

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Nächste SlideShare
Adobe Scan 16 Jul 2022.pdf
Adobe Scan 16 Jul 2022.pdf
Wird geladen in …3
×

Hier ansehen

1 von 15 Anzeige

Weitere Verwandte Inhalte

Aktuellste (20)

Anzeige

C Programming Structures.pdf

  1. 1. l Str1tt1 grouped 1 -- i 1. co11v1en e1 s ntax, I struct { int pa char ~har flo 11111,h
  2. 2. ' Ill .lhdivldt1a#slit ' :follows: Sy:11ta>< : struct ~, Example Struct Membetva
  3. 3. , e ,., U€tam ': { intac n: ch~rna! intbal l• .1~ a;i VOi _~~ ~ r-u- S: ~~ pr _si:an priutf( •.11am.- :fet1;bl
  4. 4. ,,,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
  5. 5. different
  6. 6. 11 I 1 ► A &fi anolih lo
  7. 7. { · PASSIN in~l11,tlJ~<S1. truttn~. char*'na 1 1 intacc~ char a~ ~ Ooatb-: . rmt . cauf([ . c.JJ I =(u.d
  8. 8. 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
  9. 9. 1 N-ested Sttr ~ II structtir11. the<led~ Exanwlel Str1 · { r ea,rb
  10. 10. *NE. / Ast~ struc #incl . t :/' ...,.,,.,,.,,n ,;,}~...., / / stru,, ints I II' cba~I { struct, clrscr 111 Ptintf( , ''); /, ·,sdob.date, ",rJ; ,·•11 t

×