• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 4 out of 36 pages
Presentation

Functions

Document preview thumbnail
Preview 4 out of 36 pages

Functions in C language

Content preview

Functions


©LPU CSE202 C++ Programming

, What is function????
• Function is a self contained block of
statements that perform a coherent task of
some kind.
• Every C++ program can be a thought of the
collection of functions.
• main( ) is also a function.




©LPU CSE202 C++ Programming

, Types of Functions.

• Library functions
– These are the in- -built functions of ‘C++ ’library.
– These are already defined in header files.
– e.g. Cout<<; is a function which is used to print at
output. It is defined in ‘iostream.h ’ file .
• User defined functions.
– Programmer can create their own function in C++
to perform specific task


©LPU CSE202 C++ Programming

, Why use function?


©LPU CSE202 C++ Programming

Connected book
 image
Brian W. Kernighan, Dennis Ritchie The C Programming Language
Publisher: maart 1988 ISBN: 9780131103627 Edition: 2

Document information

Uploaded on
February 11, 2021
Number of pages
36
Written in
2018/2019
Type
Presentation
Person
Unknown
£8.99

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

Sold
0
Followers
0
Items
1
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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