Questions tagged [reversing]

Reversing refers to performing a task in the direction opposite to that which the task is normally performed in. It also refers to changing the order of an ordered list of items such that they are rearranged from the last item to the first item. For questions related to discovering the principles of a human made system through analysis, please use [tag:reverse-engineering].

Reversing refers to performing a task in the direction opposite to that which the task is normally performed in.

It also refers to changing the order of an ordered list of items such that they are rearranged from the last item to the first item.

For questions related to discovering the principles of a human made system through analysis, please use .

113 questions
0
votes
1 answer

How can I reverse the order of a linked list?

I am trying to print out the results of the linked list in the reverse order that they were entered in. The program takes 3 inputs, Song name, song length (in seconds) and copyright. The program should take the list of songs and print the in the…
Samiorga
  • 11
  • 6
0
votes
0 answers

Is reversing a string this way bad practice? [Java]

Is this a bad way to reverse a string? I'm still somewhat of a beginner and I've read that some companies look for how you would reverse a string? So here's how I did it, and it works but would companies look down on this? I'm in my second semester…
0
votes
2 answers

Why I am not getting any value back from the function?

Could you please tell me why I am not getting any value back from the function below? #include #include typedef struct { unsigned int length ; char * data ; } String ; String reverse(String this){ String that; …
0
votes
1 answer

What is the correct obfuscator for my .net binary file?

everyone. I am reversing one .net compiled file, but faced troble. I have detected it's obfuscated property with Exeinfo PE, RDG Packer Detector, Detect It Easy. ExeinfoPE says it "Microsoft Visual C# / Basic.NET [ Obfus/Crypted ] - EP Token :…
0
votes
2 answers

Date Automatically Reversing VBA Excel

So, I'm having some problems with dates that are reversing themselves in VBA when assigned to a Date variable. It's simpler than it sounds, but it's really bugging me. Code: Dim InsertedDate as Date On Error Resume Next InsertedDate =…
0
votes
0 answers

binwalk in reversing switch

everyone. I am a green apple in reversing. Recently i wanna reverse a switch but get some problems. i reaaaaaaaaly need your guys help. first i extract the .bin file from the switch and use binwalk to analyse. but it shows nothing. then i rename the…
chandler
  • 51
  • 1
  • 5
0
votes
1 answer

Reverse engineering ambiguous syntax

What I often see online, when the topic is reversing, is this syntax *(_WORD *)(a1 + 6) = *(_WORD *)(a2 + 2); I think this code is from an IDA plugin (right?), but I can't understand it .. can someone explain me a little bit, or indicate…
Kiks777
  • 113
  • 1
  • 2
  • 9
0
votes
3 answers

Reversing string in C++

In the following part of the string swap code end = &str[len - 1]; I am not understanding the addressing part. When I do it without the addressing part it still runs but gives me a warning that "a values of type char cannot be assigned to identity…
Jeff
  • 3
  • 2
0
votes
1 answer

Trying to reverse a given word

#include #include int main() { char s[100],temp1[100]; int i; printf("Some word "); scanf("%s", s); for (i = 0; s[i] != '\0'; ++i); int a = i-1; for (int k = 0; k < i; k++) { temp1[k] =…
süleyman
  • 93
  • 10
0
votes
0 answers

Reversible addition of 2 numbers

I have come across a problem that I would ideally like to solve where I would like to add two (problem involves 24-bit but for ease of demonstration 8-bit is fine) numbers together - simple enough, they don't even need to be strictly added, an XOR…
0
votes
1 answer

Why I can reverse a string by passing a variable but not passing a real string? (simple code)

Here is the way how I can display the string "dcba": main() { char s[10] = "abcd"; puts(strrev(s)); } The way how I get a "Segmentation Fault" (why?): puts(strrev("abcd")); And here is the function that reverse the string: char…
Ricardo
  • 67
  • 8
0
votes
1 answer

Reversing a string in c++

I started doing the C++ challenges on coderbyte. The first one is: Using the C++ language, have the function FirstReverse(str) take the str parameter being passed and return the string in reversed order. Use the Parameter Testing feature in the…
Nikolay
  • 205
  • 1
  • 3
  • 12
0
votes
4 answers

Reversing int array using recursion in C

I have learnt C language at school but I'm not good at it... And when I was trying to implement this algorithm using C language: ReverseArray(int A[], int i, int j) { Input: Array A, nonnegative integer indices i and j Output: The reversal of…
Ceria
  • 97
  • 2
  • 9
0
votes
4 answers

new to javascript, working with arrays

Wondering why i needed to add 4 to the array length in order for it to print out the entire array in reverse? before i added 4 it was just using the .length property and it was only printing out 6543. thanks in advance! function reverseArray(array)…
jordan
  • 305
  • 1
  • 7
  • 17
0
votes
2 answers

What does the "C" used as an offset in assembly mean?

I have the following piece of code: RtlGetElementGenericTable: 7C9624E0 PUSH EBP 7C9624E1 MOV EBP,ESP 7C9624E3 MOV ECX,DWORD PTR [EBP+8] 7C9624E6 MOV EDX,DWORD PTR [ECX+14] 7C9624E9 MOV EAX,DWORD PTR [ECX+C] And I was wondering what does the "C" in…
Hashirama Senju
  • 195
  • 1
  • 11