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...

Share

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

Share

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...

Share

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...

Share

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...

Share

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...

Share

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...

Share

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

Share

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

Share

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. ...

Share