Question: 13. You wish to write a function that encrypts text as numerical values. You know that in C, memory is an amorphous entity. You wish

 13. You wish to write a function that encrypts text as

13. You wish to write a function that encrypts text as numerical values. You know that in C, memory is an amorphous entity. You wish to take every 4 characters in a string, and output the integer equivalent of those 4 bytes. E.g. the string "jack" is encoded as a single integer 1784767339. You may output via printf. You may assume that strlen(str) % 4 == 0. DO NOT make assumptions about the length of a string. Hint: This solution requires fewer than 10 lines of code. 01100001 01100011 01101010011000010110001101101011 1784767339 01101010 01101011 void convert (char* str) {

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!