Showing posts with label functions and parameters in c. Show all posts
Showing posts with label functions and parameters in c. Show all posts

Sunday, December 13, 2015

Functions and Parameters in C language

A simple program that I wrote using C programming language to demonstrate how to write a function with parameters good for beginners in C programming.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.
  

 Program Listing

#include <stdio.h>
#include <stdlib.h>

// declaration of function prototype

void hello(char user[50]);
// function with parameters

main()
{
system("cls");
// Calling the function with
// parameters
hello("John Smith");

printf("\n\n");
system("pause");
}

void hello(char user[50])
{
 printf("\t     Hello %s" ,user, ".");
 printf("\n\n");
 printf("\tWelcome To World City College");
}