WAP of C Language that calls many Functions

C Function Program

Statement of C Program : This Program prints the Messages or Instructions when different Functions calls: 

#include<stdio.h>

void England();                                      /* Function declaration */
void Australia();                                     /* Function declaration */
void India();                                           /* Function declaration */

int main()
{
printf(" I am in main\n");

England();                                                 /*  Function call */
Australia();                                                /*  Function call */
India();                                                      /* Function call */

return(0);
}

void England()                                             /* Function definition */
{
printf(" I am in England\n");
}

void Australia()                                             /* Function definition */
{
prinf(" I am in Australia\n");
}

void India()                                                   /* Function definition */
{
printf(" I am in India\n");
}

Output:
I am in main
I am in England
I am in Australia
I am in India

Note:  Number of Conclusions drawn from the above Program:
  • A C Program is a collection of one or more Function or you can say A Function is a basic building block of C program.
  • If a C program contain only one Function, then it must be main(), because Program execution always begins with main().
  • In C program, as many number of Functions exist i.e there is no limit on the number of Functions.
  • Control returns to main() after each Function has doing its work or thing.
  • The Program ends, when main() runs out of statements and Function calls.

                                                               

                                                                 That's All

0 Response to "WAP of C Language that calls many Functions"

Post a Comment

Popular Posts

Label

1 Sidebar 2 Columns 3 Columns Footer 3rdball 4 Columns Footer Alex Alvaro Antsasia Arlinadesign Averie Barry BASIC CONCEPTS Basil Bayna Fast BeautyPress BeautyTemplates Beckel Best Best - Clean Beyonce Pro BioMag BlackMag Blanter Nova Blogger Card Bloggertheme9 Blogish Bpress Brakt C LANGUAGE C PROGRAMS C++ LANGUAGE C++ PROGRAMS Carella Cellar Charlotte Chooko Lite Clara Clean Combo One Cooperate Crusade Darry Dorman Dreamway Dunia Blanter eCars EduAcademy EducationPress Elise Elvan Eva Everyday FabNews Fashion Fashion Blogger Template Fashion Gossip FastCars Fedo FlashNews Fredy Portfolio Gaming Globus GoodTime Goomsite HTML LANGUAGE iGaming Indicate Innove Insomnia InspiredNews iSoft Jasmine Kalem Landscaping Lashira Lavelle Lily Fashion Limax Linea Lionex Luminescence Lite Lumix Luxury Magazine MagazinePro MAJOR DIFFERENCES MarketingBlog Martin MaxiMag Medica Mega Melissa Mercury MeshMag Minimag Minimalist MiniNews MovieKhor msdesignbd MusicLand Neko NetZine New Spread News16 Newsflash NewsForce NewsIdea Newspaper News NewsPro Nubie Fast Odd Themes Optima PaperMag PaperMag blog Parhlo Perfection Personal Personal Blog Photosout PixelZ Power Blog Premium Themes ProfileMag Purez Rano ReadNews Real estate Remito Grid Responsive Revo Robusta Rotario Saara SeoBoost Settle Shouters Simple Catch SimpleClean Sketchly SNews SolidMag Someo Sophie Sora Sora Bank Sora Home Sora News Responsive Sora One Sora Ribbon Spido Sticko Stucco Sure Mag Swift Tech Tech Pro Techia Techmax TechSpot TemplateClue Templateism Templatesilk Templatesyard Templatezy The Freelancer TheBlogger TheFocus Themeforest Themexpose TIPS AND TRICKS Topside TravelMag Trendy Trendy Travel Tumblr Under Construction Uong Jowo Veethemes Vertox VideoPlay Vigo Waverly way2themes WebBiz Wedding X-Mag Zealer ZetaMag