+ 5

Anyone is here...who explain me about the functions in c..?

Function in c., Function types, all about functions

9th Feb 2019, 2:16 AM
GAME CHANGER
GAME CHANGER - avatar
4 ответов
9th Feb 2019, 2:21 AM
Arushi Singhania
Arushi Singhania - avatar
+ 8
Functions are block of codes which are defined to do a specific task, as many times as you want and you will have to write the code once i.e. while defining the function. And when you need the function to do its job you have to just call it by its name like: sayHello(); And the definition of the function will be like: void sayHello() { printf("Hello world\n"); } For example if you write sayHello(); line 3 times in your main function then it will print Hello world 3 times on console.
9th Feb 2019, 2:59 PM
Vikas Tiwari
Vikas Tiwari - avatar
+ 4
Sololearn already has explained it. See link posted by Arushi Singhania .
9th Feb 2019, 7:22 AM
Sonic
Sonic - avatar
0
Thnk u....,😇
10th Feb 2019, 6:17 PM
GAME CHANGER
GAME CHANGER - avatar