Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 736 Bytes

README.md

File metadata and controls

82 lines (54 loc) · 736 Bytes

Info

Here is a repository where I store some codes with total beauty, that give us conciseness and insight.

Brief codes below.


CONTENTS


Codes

Copy_string

C

while( *s++ = *t++ );

Check_odd

C

if ( num & 1 )

C++

if ( num & 1 )

Javascript

if ( num & 1 )

Python

if num & 1:

Swap_Two_numbers

C

a^=b^=a^=b;

C++

a^=b^=a^=b;

Javascript

a^=b^=a^=b;

Python

a = a ^ b
b = b ^ a
a = a ^ b