

Within curly braces the function body is present.The return type is a data type of the value(return by the function).A function definition provides the following parts of the function. When we define a function, we provide the actual body of the function. Void display(int x) // function decalration or prototype Return_type function_name(data_type parameter, data_type parameter)Įxample of Function Declaration/Prototype #include If function definition is written before the main function then function declaration is not required whereas, if function definition is written after the main function then we must write function declaration before the main function.
.jpg)
Hence the following declaration is also valid.
#DEFINITION OF DECLARATION CODE#
So there will be no need to write the same code again and again.Ĭ Functions help in the optimization of the C Program because we don’t need to write much code.ĭeclaration of C Function, tells the compiler about a function’s name, it’s the return type and the parameters. Here are some main advantages of Functions in C: All C programs are written using functions to improve re-usability and understandability. We can use more than two C Functions in a single C Program.Ī function is a group of statements that together performs a task. So, the children have to be helped and supported and must be protected against labour exploitation, kidnapping, and ill-treatment, etc.Mostly we see that every C program has at least one function such as main(). It means to grant particular assistance to them and to provide protection adapted to their age and to their degree of maturity.

They imply the necessity to protect them. The children thus have the right to live and to develop suitably physically and intellectually.Ĭhildren’s rights plan to satisfy the essential needs for good development of the child, such as the access to an appropriate alimentation, to necessary care, to education, etc.Ĭhildren’s rights consider the vulnerable character of the child.
