# Behaviour of ++ operator in printf

int main()
{
    int a = 10;
    printf("\n %d %d %d %d %d %d", ++a, a++, ++a, a, a++, ++a);
    return 0;
}

Note: Different compilers have different behavior for computation, but behavior is definite in respective compilers.

I will explain you the behavior in GCC and Turbo-C compiler.

First of all I will show you the behavior in GCC compiler.

Rule for GCC compiler: Continue reading

# Prove that P² -1 is divisible by 24, Given that P is a prime number and P > 3

Solution 1:

We know that,

On a set of $4$ consecutive integers, there must exist a number which is divisible by$4$. For example,$(7,8,9,10)$ here $8$ is divisible by $4$. another set $(65,66,67,68)$ here $68$ is divisible by $4$.

Same with $3$ consecutive numbers, there must exist a number which is divisible by $3$. Continue reading

# Area of Circle πr² Proof

## 1.  Polygon proof (Archimedes's principle)

In 1st figure circle inscribed in square and in 2nd circle is inscribed in octagon. Now we keep increasing the number of sides of the regular polygon, see below figure Continue reading

# Pythagorean Theorem Proof

## Pythagorean Theorem:

Statement: In a right angle Triangle, the sum of the squares of base and perpendicular is equal to the square of hypotenuse.

# Why google has totally changed its logo

### Google's new logo is only 305 bytes, while its old logo is 14,000 bytes

The old logo uses a complicated serif font which can only be created using bezier curves. All together, it has 100 anchor points, resulting in a 6 KB (6,380  bytes) file. When compressed, the size comes down to 2 KB (2,145 bytes).

# Proof: Arithmetic Mean is greater than or Equal to Geometric Mean

For two non-negative numbers x and y, is relation is :

$\frac{x+y}{2}\geq \sqrt{xy}$
here, equality if and only if $x=y$.

We know that the square of a real number is always non-negative i.e.  ≥0 and from the elementary case $(a\pm b)^2=a^2\pm 2ab+b^2$ of the binomial formula: Continue reading

# What is the most compressed file ever

There is a zip bomb called 42.zip
The file is 42.374 bytes when zipped,
and 4.503.599.626.321.920 bytes (4.5 petabytes) when unzipped

That is 4.19 Million Gigabytes compressed in just a 42 kilobyte file. Continue reading