C File Operations – getc() – puts() – fscanf() – fprintf()
In this tutorial, we are going to learn about C file operations. C File Operations: The functions getc() and fgetc() are used to read a character from the file which is opened for…
Press Esc to close
Archive
In this tutorial, we are going to learn about C file operations. C File Operations: The functions getc() and fgetc() are used to read a character from the file which is opened for…
In this tutorial, we are going to learn about reading and writing files in C. File Handling in C: The English dictionary term file refers to a folder or a…
In this article, we are going to understand the switch-case construct in C Language. Switch Case in C The switch-case construct is an alternative to the if-else-if construct.…
In this article, we are going to understand the Flow Control Statements in C Language. Any valid combination of constants, variables, and operators constitutes an expression. Some of…
In this tutorial, we are going to learn about the operator precedence, and associativity. Operator Precedence & Associativity: When several operators appear in one expression, evaluation takes place…
structure_pointer_variable -> member Let us consider an example: struct student { int roll_number; int total_marks; float attendance_percentage; }; struct student s = {10, 95, 98.45}; struct student *p;…
In this tutorial, we are going to learn about union and how is it different from a structure. Union in C: A union is also a collection of different data…
In this tutorial, we are going to learn about the fundamentals of recursion functions. In C language it is possible for functions to call themselves. C - Fundamentals of Recursion functions: A…
In this tutorial, we are going to learn about two types of function arguments. Formal and Actual Arguments: An argument is an expression that is passed to a…
Address of num[i] = base address + i * scale factor // scale factor is the size of the data type used to create an array
In this tutorial, we are going to learn about the basics of pointers in C. C Pointers: A pointer is a variable that refers to a memory location, which…
In this tutorial, we are going to learn about categories of functions. C - Categories of Functions: All the C functions can be called either with arguments or without arguments in a…
In this tutorial, we are going to learn about unconditional constructs in C. C break statement: In C language there is a special statement called break;, which is used to unconditionally…
In this tutorial, we are going to learn about some of the iterative constructs used in the C language. C while loop: Most of the programming languages provide…
In this tutorial, we are going to learn about how to pass an array (1-D or 2D) to a function. Understanding Functions with 1-D arrays: Arrays can also be…
In this tutorial, we are going to learn about different storage classes, scope and lifetime of variables. Scope of Variables in C In C language, each variable has a storage…
In this tutorial, we are going to learn about the concepts of dynamic memory allocation also known as DMA. In C, memory allocation can happen statically (during compile time), automatically, or…
In this tutorial, we are going to learn about the User defined functions in C. User-defined functions are the functions that are defined by the user at the…
In this tutorial, we are going to learn about Functions in C. Functions in C Language: A program can be used to solve a simple problem or a large complex problem. Programs solving…
data_type array_name[size_1][size_2][size_3].......[size_n]; //where size_1 to size_n from the dimensions of the declared array Examples: int arr_2d[3][4]; //an example for a two-dimensional array int arr_3d[3][4][2]; //an example for a…