A program to demonstrate how to declare and use local and global variables in C programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
Thank you very much for your support.
Program Listing
/* global_local.c
Local and Global Variable Program
Author : Jake Rodriguez Pomperada, MAED-IT, MIT
Tool : Dev C++ Version 5.11
Date : February 24, 2022 8:24 PM Thursday
*/
#include <stdio.h>
// Global variable declaration
//int a = 100;
int main()
{
// Local variable declaration
printf("\n\n");
printf("\tGlobal and Local Variables in C");
printf("\n\n");
int a = 50;
printf("\tThe value is %d.",a);
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
return 0;
}
No comments:
Post a Comment