Related Topics

C Programing - Introduction
#include <stdio.h>
/* This is a global variable declaration */
int global_variable;
/* This is a function prototype */
void my_function(int x, int y);
/* The main function */
int main()
{
/* This is a local variable declaration */
int local_variable = 42;
/* Call my_function */
my_function(local_variable, global_variable);
return 0;
}
/* Function definition for my_function */
void my_function(int x, int y)
{
printf("The value of x is %d\n", x);
printf("The value of y is %d\n", y);
}
/* Output*/
/* The value of x is 42
The value of y is 0 */




Popular Category
Topics for You
Go through our study material. Your Job is awaiting.