C

52 lessons64 min total



  1. C Programming Language
    C is a general-purpose, procedural, imperative computer programming language developed at AT & T’s Bell Laboratories of USA…


    2 min





  2. C Program – Structure
    Before we begin with our basic concepts of the C programming language let's take a look at the…


    1 min





  3. Keywords in C
    There is a close analogy between learning the English language and learning the C language. We start learning…


    1 min





  4. Identifiers in C
    Identifiers in C are the basic building block of a program. As the name suggests, they are used…


    1 min





  5. Variables & Constants in C
    Variables & Constants in C are formed by combining alphabets, numbers, and special symbols. Let us see what…


    1 min





  6. Data Types in C
    Data types in C refer to how much memory it occupies in storage and how the bit pattern…


    2 min





  7. Operators in C
    Operators in C are symbols that are used to perform operations on operands(operands can be a constant, a…


    5 min





  8. Precedence of Operators in C
    While executing an arithmetic operation the precedence of the operators in C as well as other programming language…


    2 min





  9. Comments in C
    Comments in C are an explanation or description of the source code of the program. It helps a developer…


    1 min





  10. Format specifiers in C
    Format Specifiers in C are used during input and output operations. They specify what kind of data is…


    2 min





  11. Escape Sequence in C
    The escape sequence in C represents nongraphic characters (nongraphic characters are those characters that cannot be typed directly…


    1 min





  12. Decision-Making in C
    Decision-making in C, as the name suggests, is a way of performing different sets of actions depending on…


    1 min





  13. if-else Statement
    As we have already seen that the if statement by itself will execute a single statement, or a…


    1 min





  14. switch Statement in C
    The switch statement in C provide us with an alternate way to implement the if-else if ladder in…


    1 min





  15. switch and if-else in C
    We had already seen that both if-else and switch in C can be used for decision-making in a…


    1 min





  16. Loops in C
    The programs that we have created so far were of limited nature, because on execution, they always perform…


    1 min





  17. Loops and its examples
    Let us take a look at the various ways to use loops in c. Infinite loop An infinite…


    1 min





  18. while loop in c
    The while loop in c is an entry controlled loop (Entry Controlled Loops are used when checking of…


    1 min





  19. while loop examples in c
    Let us look at various examples of the while loop in c. Printing n numbers: output: Here, we…


    1 min





  20. do-while loop in c
    The do-while loop in c in an exit controlled loop unlike the for and the while loop the…


    1 min





  21. do-while loop examples
    Here are a few examples of the do-while loop. Printing table of a number using do-while: output: using…


    1 min





  22. Jump statements in C
    In some programming cases, we want to take control to the start of the loop, skipping the statements…


    1 min





  23. Functions in C
    A computer program cannot handle all the tasks by itself, instead, it requests other programs like entities called,…


    2 min





  24. Passing arguments between functions in C
    The functions that we use need to be flexible, i.e, they should be able to pass values among…


    1 min





  25. Call by Value & Call by Reference
    There are two ways to pass the data into the function in C language:  method :call by value …


    1 min





  26. Recursive function in C
    In the C programming language, a function may call itself. A function is called recursive if a statement…


    1 min





  27. Program to check whether a number is even or odd
    To determine whether an integer number is even or odd, utilize functions. We have created a function even_odd(int…


    1 min





  28. Arrays in C
    Arrays in the C language are a set of homogenous data types stored at the contiguous memory location.…


    1 min





  29. One-dimensional Array
    A one-dimensional array is one that only needs one subscript statement to show a single array element. A…


    1 min





  30. Two-dimensional array
    The two-dimensional array can be defined as an array of arrays. The 2D array is organized as matrices,…


    1 min





  31. Structure in C
    The structure is a user-defined data type in C that allows us to aggregate data of various types. Structure…


    1 min





  32. Array of Structure
    Array of Structure: In C, an array of structures is a collection of many structure variables, each of…


    1 min





  33. Nested Structure in C
    C allows us to nest one structure within another structure, which allows us to design complicated data types.…


    1 min





  34. Typedef in C
    Typedef in C is used to redefine the name of the existing variable type. It generally increases the…


    1 min





  35. Unions in C
    A union is a particular data type in C that allows several data types to be stored in…


    2 min





  36. Pointer in C
    In C, a pointer is a variable that stores the address of another variable. This variable can be…


    1 min





  37. Pointer to array
    An array name is a constant pointer to the array’s first element. As a result, in the declaration…


    1 min





  38. Pointer to structure
    The structure pointer points to the memory block address where the Structure is stored. It’s used to make…


    1 min





  39. Pointer to Pointer in C
    A pointer variable stores the address of another pointer variable; this is referred to as a pointer to…


    1 min





  40. Pointer operations
    Just like any other data type, we can perform various arithmetic operations on pointers. All pointers int, float,…


    1 min





  41. Pointers with function in c
    We can create a pointer pointing to a function in the same way that we can create a…


    1 min





  42. File handling in C
    File handling in C allows us to use our C program to create, update, read, and delete files…


    3 min





  43. Error Handling in C
    The response and recovery procedures from error conditions present in a software application are referred to as error…


    1 min





  44. Dynamic Memory Allocation
    In the C programming language, the concept of dynamic memory allocation allows the programmer to allocate memory at…


    1 min





  45. Command Line Argument
    When your C programs are run, you can pass some values from the command line to them. These…


    1 min





  46. Miscellaneous Program(Palindrome Number)
    A palindrome is a sequence that, when reversed, looks exactly like the original. For example, abba, level, 232,…


    1 min





  47. Miscellaneous Program(reverse the case of input string)
    A program to reverse the case of input characters is provided below. islower() is a system-defined function in…


    1 min





  48. Miscellaneous Program(Armstrong Number)
    An Armstrong number is an n-digit number whose sum of digits raised to the nth power equals the number…


    1 min





  49. Miscellaneous Program(exponential without using pow() method)
    Without using the pow() method, here is a program to find exponential. Long long int is twice as…


    1 min





  50. Miscellaneous Program(Reverse an array)
    A simple program to reverse an array is provided below. Output: here, we have reversed the input array…


    1 min





  51. Miscellaneous Program(Remove Duplicate Elements)
    When an array contains the same number of elements in both sorted and unsorted order, the elements of…


    1 min





  52. Miscellaneous Program(Matrix multiplication)
    A Matrix Multiplication program is provided below. Only when the number of columns in the first matrix equals…


    1 min