Hits: 84 (C Programming Tutorials) C File Handling In this tutorial, you will learn about file handling in C. You will learn to handle standard I/O in C using fprintf(), fscanf(), fread(), fwrite(), fseek() etc. with the help of examples. A file is a container in computer storage devices used for storing data. Why files …
Hits: 79 (C Programming Tutorials) C Unions In this tutorial, you’ll learn about unions in C programming. More specifically, how to create unions, access its members and learn the differences between unions and structures. A union is a user-defined type similar to structs in C except for one key difference. Structs allocate enough space to store …
Hits: 15 (C Programming Tutorials) C Structure and Function In this tutorial, you’ll learn to pass struct variables as arguments to a function. You will learn to return struct from a function with the help of examples. Similar to variables of built-in types, you can also pass structure variables to a function. Passing structs to …
Hits: 37 (C Programming Tutorials) C structs and Pointers In this tutorial, you’ll learn to use pointers to access members of structs in C programming. You will also learn to dynamically allocate memory of struct types. Before you learn about how pointers can be used with structs, be sure to check these tutorials: C Pointers …
Hits: 54 (C Programming Tutorials) C struct In this tutorial, you’ll learn about struct types in C Programming. You will learn to define and use structures with the help of examples. In C programming, a struct (or structure) is a collection of variables (can be of different types) under a single name. How to define …
Hits: 26 (C Programming Tutorials) String Manipulations In C Programming Using Library Functions In this article, you’ll learn to manipulate strings in C using library functions such as gets(), puts, strlen() and more. You’ll learn to get string from the user and perform operations on the string. You need to often manipulate strings according to the …
Hits: 17 (C Programming Tutorials) C Programming Strings In this tutorial, you’ll learn about strings in C programming. You’ll learn to declare them, initialize them and use them for various I/O operations with the help of examples. In C programming, a string is a sequence of characters terminated with a null character . For example: …
Hits: 17 (C Programming Tutorials) C Dynamic Memory Allocation In this tutorial, you’ll learn to dynamically allocate memory in your C program using standard library functions: malloc(), calloc(), free() and realloc(). As you know, an array is a collection of a fixed number of values. Once the size of an array is declared, you cannot …
Hits: 21 (C Programming Tutorials) C Call by Reference: Using pointers In this tutorial, you’ll learn to pass addresses as arguments to the functions with the help of examples. This technique is known as call by reference. In C programming, it is also possible to pass addresses as arguments to functions. To accept these addresses …
Hits: 18 (C Programming Tutorials) Relationship Between Arrays and Pointers In this tutorial, you’ll learn about the relationship between arrays and pointers in C programming. You will also learn to access array elements using pointers. Before you learn about the relationship between arrays and pointers, be sure to check these two topics: C Arrays C …
Hits: 78 (C Programming Tutorials) C Pointers In this tutorial, you’ll learn about pointers; what pointers are, how do you use them and the common mistakes you might face when working with them with the help of examples. Pointers are powerful features of C and C++ programming. Before we learn pointers, let’s learn about addresses …
Hits: 13 (C Programming Tutorials) Pass arrays to a function in C In this tutorial, you’ll learn to pass arrays (both one-dimensional and multidimensional arrays) to a function in C programming with the help of examples. In C programming, you can pass en entire array to functions. Before we learn that, let’s see how you …
Hits: 12 (C Programming Tutorials) C Multidimensional Arrays In this tutorial, you will learn to work with multidimensional arrays (two-dimensional and three-dimensional arrays) with the help of examples. In C programming, you can create an array of arrays. These arrays are known as multidimensional arrays. For example, float x[3][4]; Here, x is a two-dimensional (2d) array. The …
Hits: 16 (C Programming Tutorials) C Arrays In this tutorial, you will learn to work with arrays. You will learn to declare, initialize and access elements of an array with the help of examples. An array is a variable that can store multiple values. For example, if you want to store 100 integers, you can …
Hits: 11 (C Programming Tutorials) C Storage Class In this tutorial, you will learn about scope and lifetime of local and global variables. Also, you will learn about static and register variables. Every variable in C programming has two properties: type and storage class. Type refers to the data type of a variable. And, storage …
Hits: 27 (C Programming Tutorials) C Recursion In this tutorial, you will learn to write recursive functions in C programming with the help of an example. A function that calls itself is known as a recursive function. And, this technique is known as recursion. How recursion works? void recurse() { … .. … recurse(); … …