Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

PPS Lab Notes, JNTUH R18

Rating
-
Sold
-
Pages
17
Uploaded on
15-02-2026
Written in
2025/2026

PPS LAB FOR B.TECH FIRST YEAR OF JNTUH R18.

Institution
Course

Content preview

For factoMa
Not ACCpRg PAacer o Ct etuDiDg e
cephing paramekr
#incluclcstdlo. h
#ancludeeshdio h>
Void fact ot); vodhVoidfact),
Voicd maiNC ) void mainc)

int actC
Pnntteptet value)Hi
Scanf("zd.)}' void factc)
tactca
int -5,i,f-1)
voicd fact(iot) os Li= 1iL=h;ítt)
.'to
,nt 5,?, F-i; 4-4xi
tostits =rs)74¬)
dackonal= zd), fJS
prm (


pm dttonal=zd",f); Aepto9ane etuspipg va liet
HnclucleL Stelioh>
Rutunii ot fact cirnt)
#includestdin hy void mainC )
fot Aoct C
void malnC)
pormt(an OVaue ");
Stan"d', 8n))
factC) z factcn),
fafntt("facturmal- %d", *);
PprinCfactongl-zd.J:'




tfactt) int Ace to)

foli,lL>)) i ++)

ffxi t4xis
tettuunE)
retuun CF)

, function acceptng Ond retunig values
Based on
bto fbfaoing
& claitied
a user defined function
ou types. retun valuas
Furclon wittut parameers and without
retuin values
netun
Functon oittout patamele ard wth
retuun value
with pararneles anc othouut
ift Functon with netuun vaue
Funckim with paamejer
and
V
use detined furcbirs
hrte c pmgramto ote, the
rettun
and witout
Functn uwthouet pauameles
a
Value:


ircudisidio.hy
vofd sumé)
Oid oairt)




void Sumc )

nt aao, 4-30, z
=ty
prmH ( sum zd, z);

, uwtholt eAN' Vek uwth ettuiNiq vA'Ue
vaue
b Functton fth paramEer mcl d. FunctioD Oth parametz and
#hncludeLstdiah> trcludcsBdio. hy

oid sumlint,int) m irt sumcit,int)
void maint ) yotd malne)it
int20.-30 int aao, b=3o,
SLum(,);
pmntf("sum d , c
void sum inta, intb) l
insumlota, int b)
int C
C=atb . nt
prtsum=zd".cJ
retunC*;

CFuckm uwithut peuameler and wib tetuan values to fmd he fectanal of a


laoite a prog3amme
gfiven umber usmqFuetons.
ludeistdto h:
nt sumC );
vod mainc ParameC fasing MechaiS)
poyameer,
functon will accept the
int a from
= SUumC ; accepted paamelers to ae be paxsed
the
piF (sum=zdz to called function
cauirq funchion
are of tuo types.
Ke accepkdg garamekis
in Sumi)
Call by value
ot 20, y=30, itCall by Reference.

Call by valu
tetuuna);

Written for

Institution
Course

Document information

Uploaded on
February 15, 2026
Number of pages
17
Written in
2025/2026
Type
Class notes
Professor(s)
Latha
Contains
B.tech 1st year

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
yashwanthraasa

Get to know the seller

Seller avatar
yashwanthraasa
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 months
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions