C Local and Global Variables
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…
Press Esc to close
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'll learn about Moore's voting algorithm in Python. To understand this, let's start with the problem of finding the majority element in a given array.…
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…
Here are we are going to see how to do python string case conversion. Python String Case Conversion: Python provides the following methods to perform the string case…
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…
There are several ways to update the List in Python, let's see them. Different ways to update Python List: Python list provides the following methods to modify the…
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…
In this tutorial, we are going to learn about Arrays in C. In a programming language, the data that has to be processed is loaded in memory and held in variables. When we…
#include <stdio.h> It makes the contents of the header file available to the compiler and the linker during the execution of programs. Now let's understand some preprocessor directives,…
A Basic Django MVT application example is here. 1. Technologies & Prerequisites Python 3.7, 3.8 Django 3.1 HTML 5 2. MVT Architecture The Model-View-Template (MVT) Architecture is a…
Django Model View Template (MVT) The Django framework is based on the Model-View-Template (MVT) architecture. MVT is a software design pattern for developing web applications. This web-framework software…
In this tutorial, we will see how to solve the maximum sub array sum problem efficiently using the Kadane's Algorithm. Maximum subarray sum What is the maximum subarray…