Understanding the structure of a C++ program
In this tutorial, we are going to learn about the structure of a simple C++ program. Structure of a CPP program: When the language was standardized by the…
Press Esc to close
Archive
In this tutorial, we are going to learn about the structure of a simple C++ program. Structure of a CPP program: When the language was standardized by the…
In this tutorial, we are going to learn about CPP Features. CPP Language Features: Simple Rich Library Middle-level programming language Platform Dependent Structured Programming Language Extensible Object-Oriented Memory…
In this tutorial, we are going to learn about the very basic introduction of the CPP/C++ language. Introduction to CPP Language: C++ is a general-purpose programming language created by Bjarne Stroustrup as an…
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 the basics of structures, their declarations, and their definitions. Struct in C: A Structure is a derived data type to organize a group…
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…
Here we are going to see what are C Local and Global variables and their differences. C Local variables: A local variable is declared inside a function. 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…