Question: Question 3 Write a C/C++ code to reverse a string. The requirements are listed below 1. This should take a pointer to a memory location

 Question 3 Write a C/C++ code to reverse a string. The

Question 3 Write a C/C++ code to reverse a string. The requirements are listed below 1. This should take a pointer to a memory location and a length in bytes and reverse the order all of the bytes. 2. All operations need to be performed using pointer arithmetic, not array indexing 3. Should return a pointer to the source. Question 4 Write a C/C++ code to check whether a given number is a power of 2 and power of 4. Question 5 Write a code to reverse a hexadecimal number(4bytes). Example: original number-0xAABBCCDD, after Reversal-0xDDCCBBAA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!