Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C++ cpp-data-types

Character arithmetic in C and C++

As already known character known character range is between -128 to 127 or 0 to 255. This point has to be kept in mind while doing character arithmetic. To understand...
C Difference Between cpp-data-types

Difference between float and double in C/C++

For representing floating point numbers, we use float, double and long double. What’s the difference ? double has 2x more precision then float. ...
C C++ cpp-data-types

Is there any need of “long” data type in C and C++?

In C and C++, there are four different data type available for holding the integers i.e., short, int, long and long long. Each of these data type requires different a...
C GFacts C-Input and Output Quiz

Return values of printf() and scanf() in C/C++

What values do the printf() and scanf() functions return ? printf() : It returns total number of Characters Printed, Or negative value if an output error or an e...
C C++ C-Library

rand() and srand() in C/C++

rand () rand() function is used in C to generate random numbers. If we generate a sequence of random number with rand() function, it will create the same sequence ag...
C C-Operators cpp-operator

Operators in C Set 1 (Arithmetic Operators)

Operators are the foundation of any programming language. Thus the functionality of C language is incomplete without the use of operators. Operators allow us to perf...
C C++ C-Operators

Comma in C and C++

In C and C++, comma (,) can be used in two contexts: 1) Comma as an operator: The comma operator (represented by the token ,) is a binary operator that evaluates its...
Bit Magic C C-Operators

Operators in C Set 2 (Relational and Logical Operators)

We have discussed introduction to operators in C and Arithmetic Operators. In this article, Relational and Logical Operators are discussed. Relational Operators: Re...
C C++ GFacts

Operands for sizeof operator

In C, sizeof operator works on following kind of operands: 1) type-name: type-name must be specified in parentheses. sizeof (type-name)  2) ...
Bit Magic C C++

Bitwise Operators in C/C++

In C, following 6 operators are bitwise operators (work at bit-level) & (bitwise AND) Takes two numbers as operands and does AND on every bit of two numbers. ...

Subscribe to Our Newsletter