DEV Community

Cover image for Function in Every Programming Language

Function in Every Programming Language

Rishav Raj on March 18, 2021

What is Function? In Simple Word, The Function is a block of code that we reuse at any time by calling them by their name. W...
Collapse
 
phantas0s profile image
Matthieu Cneude

A procedure and a function are not the same things in every programming language.

A procedure is just a block of code you execute (without returning anything), a function always return something.

The language Pascal for example makes a difference between the two. I know, not many people use Pascal anymore, but still.

In Mathematics, a function has a stricter definition and some functional programming languages try to stick to this definition (like Haskell for example).

Collapse
 
iamrishavraj1 profile image
Rishav Raj

Thank you for explaining πŸ˜ƒ

Collapse
 
luckyarthas profile image
LuckyArthas

Thank you.

Collapse
 
iamrishavraj1 profile image
Rishav Raj

Your Welcome ☺️

Collapse
 
luckyarthas profile image
LuckyArthas

Your function declaration is perfect.
Please write more for people.
Thanks again.

Thread Thread
 
iamrishavraj1 profile image
Rishav Raj

Thanks again and Don't Forget to Share 🀠

Thread Thread
 
luckyarthas profile image
LuckyArthas

This is my first time Dev.to and your Blog is first that I read here.
Could you help me how to use Dev.to?
And here share mean?

Thread Thread
 
iamrishavraj1 profile image
Rishav Raj

If You want to write a blog then go to top of the home page amd click Write button and if you want to share the someone blog then open that blog you will get the share button.

Thread Thread
 
luckyarthas profile image
LuckyArthas

Thanks

Collapse
 
rushannotofficial profile image
Rushan S J

This is amazing ! Great job. Looking forward to more of your posts

Collapse
 
iamrishavraj1 profile image
Rishav Raj

Thank You So Much 😊❀
and Don't Forget to Share with your friends and family and get them benefit from it tooπŸ˜ŠπŸ‘