Posts

Showing posts with the label Functions in C -Hacker Rank Solution.

Functions in C -Hacker Rank Solution.

Image
  Objective In this challenge, you will learn simple usage of functions in C. Functions is a bunch of statements grouped together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void) or something. A sample syntax for a function is return_type function_name ( arg_type_1 arg_1 , arg_type_2 arg_2 , ...) { ... ... ... [ if return_type is non void ] return something of type ` return_type ` ; }