Posted on Leave a comment

‘C’ function program

‘C’ function program

  1. #include <stdio.h>
  2. void my_function();  // Declaring a function
  3. int main()
  4. {
  5.   printf(“Main function.\n”);
  6.   my_function();  // Calling the function
  7.   printf(“Back in function main.\n”);
  8.   return 0;
  9. }
  10. // Defining the function
  11. void my_function()
  12. {
  13.   printf(“Welcome to my function. Feel at home.\n”);
  14. }
Leave a Reply

Your email address will not be published. Required fields are marked *