Exetools  

Go Back   Exetools > General > Source Code

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-30-2018, 08:00
dila dila is offline
Friend
 
Join Date: Jan 2010
Posts: 60
Rept. Given: 12
Rept. Rcvd 32 Times in 14 Posts
Thanks Given: 35
Thanks Rcvd at 74 Times in 20 Posts
dila Reputation: 32
Question Strange string encoding in C code

Can someone explain how this encoding works, thanks

Code:
int a[]={21,19,6,17,12};
for(int i=0;i<5;++i){
  int c=0;
  for(int j=0;j<5;++j){
    c+=a[j]<<(i*j);
  }
  printf("%c",'a'+c%31);
}
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Reactor v. 6.7.0.0 CF and String Cleaners Source Code Aesculapius Source Code 0 08-28-2021 02:13
Code snippet for Base34 Encoding TempoMat General Discussion 11 03-29-2020 17:58
Base Encoding Library for Delphi XorRanger Source Code 0 04-30-2015 15:37


All times are GMT +8. The time now is 16:29.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )