Question: In c create a code that accepts from user integers represents the value in ASCII character of their name. stored this in an array of

In c

create a code that accepts from user integers represents the value in ASCII character of their name.

stored this in an array of int data[100]; usa char *Pointer to keep track. This means you need to have 4 characters in each index of the array. Please note that INTEL architectures are little Endian. finish array with '0' as null to know is the end of your name

example of how the array should look

data[0]=(66) + (114 * 256) + (97 * 256 * 256) + (116 * 256 * 256 * 256);

data[1]= (32) + (85 * 256) + (0);

should print Brat U // notices it has the space which is 32.

at the end cast the array Pointer = char* &A and print out the name

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!