You are on page 1of 13

aNo.

Snglementaton ot
Studres
Dae

2.

sfuceyt's datu clalem ahns

3. Auad inpet vales fen th

Sesa Codl:
t incude stdioh?
stuct student

Char nome CoJ'


int morls y
float cgPa'y
3;
int moum()
int nm-stadernts,
2
Emm -studont
struet studont students
Pri

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)

print4("n Student %dlm',i +1)'


primt(Registralron Numbers ")
Scat ( od", students J. reg no 3
Prit 5C"Nema ")
Scomf(' %C^lns", studets cr].name );

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

(in PA: 3.S6


dinlagins thes.
No:
2

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

Fnte mar ks: q0

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

imclude Astoli o.h


tt incude cstllibh

mdriz:)

tredi',
2

INPUT

Enter the no odrows Gnel


and colums efirst mariz: 2 3

12 3

Ertey the elamenda ot the second meti:.


18

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)

for (int iro icm it+)

printf("n";

fyee(matizl c)
free (aesult ),

fnee(madris2(i)),

freelvesult);
retun 0j

You might also like