tutorial

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 »

PHP Data Types

Data type is the type of the data a variable is storing. PHP has different datatypes mentioned as follows – Datatypes in PHP can be broadly categorized in three categories – Scalar types They can hold only one value at a time. They further are of four types – Integer …

PHP Data Types Read More »

C Data Types

A data type in c specifies the type of value that a variable can store for example integer, character, or float. Each data type requires a specific amount of memory. Data types in C are defined under three categories Primitive or primary Derived User defined Primitive Data Types – The …

C Data Types Read More »

Python Booleans

A boolean value in computer science is a datatype which can have one of the two values ‘true’ or ‘false’ which represents the truth values of logics. In python, the boolean values are written as ‘true’ and ‘false’ (considering the case sensitivity of t and f). When we evaluate any expression, …

Python Booleans Read More »