tutorial

PHP Constants

In PHP, a constant is like a variable except for one fact its value cannot be changed once it has been created. A valid constant name can be started with a letter or an underscore(_). There is no need to put the dollar sign($), as we do with a variable.

PHP Constants Read More »

Operators in C

Operators in C are used to perform some operations on variables and constant values. See the example below #include <stdio.h> int main(){ int a = 4, b = 5, c; c = a + b; return 0; } In the above example, we are using the addition operator(+) to add

Operators in C Read More »

Comments in C

A comment in C is a text that is ignored by the compiler. Let us see how we can use comments in a C program. There are two types of comments in C: Single line comments Multi line comments Single line comments A single line comment can be made by

Comments in C Read More »

Python Operators

An operator is used to perform some sort of operation on variables and values. For example- a = 4 b = 7 c = a + b print(c) Output 11 Python has the following type of operators     Arithmetic operators Assignment operators Comparison operators Logical Operators Membership Operators Identity

Python Operators Read More »

Variables in C++

In C++, a variable is something that can be used to store some value. The variables can be of different types to store different types of values. For example- An ‘int’ type variable stores an integer value whereas ‘char’ stores character type value. A variable is actually a name given

Variables in C++ Read More »

Constants in C

Opposite to variables, constants are those values that do not change throughout the execution of the program. They are also called literals. Like variables, a constant can be of any data type like integer, float, or string. Note: Constants should be declared using upper case names so that they can be distinguished

Constants in C Read More »

Variables in C

In C, a variable is a name given to a memory location. It is used to store some value that can be used multiple times in the program through the variable. How a variable is declared? A variable needs to be declared or created first before using. The basic syntax

Variables in C Read More »