Professional Documents
Culture Documents
Snglementaton ot
Studres
Dae
2.
Sesa Codl:
t incude stdioh?
stuct student
TppuT:
Fnter the nenaber e stucens : 3
Eoiter Stuclend dlatl.
Studnt
CnpA:3
Namaei Jne
q2
CopA: y.o
Stuceut 3
Registhahern eanlken l03
Nemei micheel
Manths: 73
Ca PA: 3.5
huctStudent students (mumstudent
\n Enter studet aletoils : \n)
i4t)
Printf CaPA ) ,
icnum.ftudets it+ )
fov(ivtieo
i+),
privtfC"In Student Yd m',
gtodent r) .regno)
nome )
Px intf ("Neme 7, S\o', tudets Ci).
Pr ('Masles %d n', gtuends ().mak );
students (i.cypals
rintf(" aPA : %.24\n,
OUTPU T:
tacet Defailh:
Studht
Noie:
CG PA: 3-po
Stucleyt 2
Regisbadin Nenba: lo
Name: Jene
AMasku: q2
(oPA : 4,o0
Stuleud 3
Nene: ichael
uting Poirs
Alyoithm:
operta).
pgoutes-fo-eyhanbey
memory king
Sousce lode .
incule sstlo h
Slout marks
8
Jnput:
Enler stuelent nme> Jack
Eviter roll mne)13S
Output:
Student Retal:
Nome: Jaek
Roll Numbea: 13
Mases q0.
Stulent )
styat Stude studor Plr e (struct (stauoftudon;
mallcize of
Printtter gtudent nome ),
Num be
Seom d ostudeot? tr ) roll
Printter morks ")n)'
studentPtr marks3
%
print(mStudent Detoils : " ,
sadent Ptr nom e ,
primf Nome : , S}n'
studentPtr alINum bey )
c\n",
Number: %
printf( Roll
Shucdentptr morlks),
%.2f \n'
print( Mayks :
ptr),
tree Cshoert
akout a aent
diinley fomafom
cto sloncmd
Date:
Aloruditn
Aim: memey
mati.
andl'lt
mdriz:)
tredi',
2
INPUT
12 3
Outpud:
Re Reraltant mtona after mutiplictiv:
139
3
lt)¬ ip izo;for(int
3
gmatrix16JG); ("y", Srcnt
ttt) cm i i20 (int for
(iyt)elloc 2iJ: rerix
of(int, size qd
3
*a, c:]= result
(int); size
ot(inta)malloc(
offimt)); semalloc(n a)(int 1J= matix
itt)E icm iz0, int forl
*)3 otlint size (m
2 malloc *)(iyt gesdt:
(int; Si(intn)malloc
of ze (mA matial
("yro) Printf
ifn!p){
(3
(S
dor (itizo icmsi)s
Sor(intjio j j t )
nesltcG]: 0
for (int lkio, kcn', ktt)
printf("n";
fyee(matizl c)
free (aesult ),
fnee(madris2(i)),
freelvesult);
retun 0j