C Programming Tutorial Library

60 Lessons

C Nested if-else Statements

Nested if-else statements in C programming plays an important role, it means you can use conditional statements inside another conditional statement.

    C goto Statement

    C supports a special form of statement that is the "goto" Statement which is used to branch unconditionally within a program from one point to another

      C Loops

      C loops execute a block of commands a specified number of times, until a condition is met.

      • What is Loop?
      • while loops
      • do while loops
      • for loops

        C Functions

        C function is a self contained block of statements that can be executed repeatedly whenever we need it.

        • What is function?
        • Benefits of using function
        • Types of function
        • Parts of Function

          C Function Arguments

          While calling a function, the arguments can be passed to a function in two ways, Call by value and call by reference.

          • Call by value
          • call by reference

            C Library Functions

            The C library functions are provided by the system and stored in the library. The C library function is also called an inbuilt function in C programming.

              C Variable Scope

              A scope is a region of the program, and the scope of variables refers to the area of the program where the variables can be accessed after its declaration.

              • Local Variables
              • Global Variables

                C Recursion

                Recursion can be defined as the technique of replicating or doing again an activity in a self-similar way calling itself again and again and the process continues till specific condition reaches.

                  C Storage Classes

                  Storage Classes are associated with variables for describing the features of any variable or function in C program. These storage classes deal with features such as scope, lifetime and visibility which helps programmers to define a particular variable during program's runtime.

                    C Preprocessors

                    The preprocessor is a program invoked by the compiler that modifies the source code before the actual composition takes place.

                    • Macro substitution division
                    • File inclusion division
                    • Compiler control division

                      C Header Files

                      Header files are helping file of your C program which holds the definitions of various functions and their associated variables that needs to be imported into your C program with the help of pre-processor #include statement.

                        C Custom Header File

                        Custom header files in C helps you to manage user-defined methods, global variables, and structures in the separate file.

                          C Arrays

                          Array is a data structure in C programming, which can store a fixed size sequential collection of elements of same data type.

                          • Define an Array
                          • Initialize an Array
                          • Accessing Array Elements

                            C Strings

                            In C programming, the one-dimensional array of characters are called strings, which is terminated by a null character '\0'.

                            • Strings Declaration
                            • Strings Initialization

                              C Pointers

                              A pointer is a variable in C, and pointers value is the address of a memory location.

                              • Pointer Definition
                              • Benefits of using Pointers

                                C Memory Management

                                C language provides many functions that come in header files to deal with the allocation and management of memories. In this tutorial, you will find brief information about managing memory in your program using some functions and their respective header files.

                                  C Dynamic Memory Allocation

                                  malloc, calloc, or realloc are the three functions used to manipulate memory. These commonly used functions are available through the stdlib library so you must include this library in order to use them.

                                    Scroll Back to Top