Skip to content

PajaritoMoyqi/Beautiful_codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Repository to store wonder codes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published