Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement decrypt _ chunks ( ) . Loop over each string in the array / / and shift the characters in it by subtracting DECRYPTION
Implement decryptchunks Loop over each string in the array
and shift the characters in it by subtracting DECRYPTIONSHIFT value
from them. Use pointer arithmetic to access individual characters
but
array access to the strings. Remember that Cstyle strings have a
null
terminator at the end. Do not apply the shift to the terminator.
Hint: to avoid doing double pointer arithmatic, save a char
pointer
to the active chunk in the outer loop but before the inner
loop.
Then the inner loop is only concerned with a single array of
characters rather than an array of strings.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started