Why we need function in c programming! | SoloLearn: Learn to code for FREE!


Why we need function in c programming!

using functions we return value. then we print whether its true or not!

1/7/2017 2:08:20 PM

Rindi Hasan

2 Answers

New Answer


printf is one of function if you dont want any function so what will result be?


functions are for to run the same functionality multiple times. somebody have to write it once, than them or others can use it in other places in the code. a good example for this is the is_prime(int num) function which returns true if its parameter is a prime number. you can write this function and use it in multiple places or even miltiple programs too.