thecoderworld
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
No Result
View All Result
  • Programming
  • Web Development
  • Best Of
    • Alternative
    • How To
    • Tech
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Reviews
  • Open Source
  • Lists
  • Security
No Result
View All Result
thecoderworld
  • Programming
  • Web Development
  • Best Of
    • Alternative
    • How To
    • Tech
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Reviews
  • Open Source
  • Lists
  • Security
No Result
View All Result
thecoderworld
No Result
View All Result
Home Tutorials Source Code C Programming

C Programming Tutorial – Functions

Ajoy Kumar by Ajoy Kumar
June 30, 2019
in C Programming
2 min read
0
Share on FacebookShare on Twitter

This is the source code from the C Programming Tutorial. In this source code, you are going to learn about c functions in a C Programming language.

What is Function?

A function is a block of code that can perform a specific task. In C Programming there are two types of c functions


  1. Standard function
  2. User-defined function

Standard function

A function which is predefined in c programming is called a standard function.

Here is an example of a standard function.

//standard fuctions in c

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

int main () {

   printf("I'm standard function in c programmig");

   return 0;
}

Here main() and printf() functions are standard function.  So, we use main()function to execute the c program and printf() function to print text on the screen.

User-defined function

Now let us discuss user-defined function.

User-defined function are the functions which are defined by the user.


Example of user-defined function

#include <stdio.h>
#include <stdlib.h>
 
void name(); // function prototype declaration
 
int main () {
 
name(); // function call
printf("I am main function \n");
 
return 0;
}
 
// function definition
void name(){
printf("I am name function \n");
} 

Tags: c programming
Previous Post

HTML 5 - Creating Your First Web Page

Next Post

HTML 5 – Paragraphs and Headers

Ajoy Kumar

Ajoy Kumar

I am an entrepreneur by heart and founder of thecoderworld. Who always follows his passion. I love writing about software, coding, open-source, technology, smartphones, tips and tricks

Related Posts

Creating Table in C
C Programming

C Programming Tutorial – Creating Table

June 30, 2019
Array Of Pointers
C Programming

C Programming Tutorial – Array Of Pointers

June 30, 2019
pointer in c programming
C Programming

C Programming Tutorial – Pointer in C

June 30, 2019

Stay Connected

  • 177 Fans
  • 41 Followers
  • 32 Followers
  • 7.9k Subscribers

Latest Posts

How to Install GIMP on Windows 10
Alternative

How to Install GIMP on Windows 10

December 10, 2019
Adobe Creative Cloud Alternatives
Alternative

Top 10 Adobe Creative Cloud Alternatives for Free

December 10, 2019
Top 5 Search Engines that Do Not Track You
Top Lists

Top 5 Search Engines that Do Not Track You

December 9, 2019
thecoderworld

© 2016 - 2019 thecoderworld.com

Navigate Site

  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer

Follow Us

No Result
View All Result
  • Programming
  • Web Development
  • Best Of
    • Alternative
    • How To
    • Tech
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Reviews
  • Open Source
  • Lists
  • Security

© 2016 - 2019 thecoderworld.com