Chat with us, powered by LiveChat Call the executable memact. - EssayAbode

Call the executable memact.

  • Call the executable memact.
  1. Create pointers for a character, a string, an integer, a floating point number, an array of 10 integers, and a struct for a fraction.
  2. For each pointer (6 of them), dynamically allocate the memory and then assign values as follows. You can use malloc and or calloc.
    • Use a name for the string (array of characters).
    • Use 25 for the integer.
    • The character should be an ‘E’.
    • The floating point number should be 32.76
    • The array of integers should be the numerals 0 through 9.
    • The struct should have a numerator of 3 and a denominator of 4.
  3. Print out values for all the dynamically allocated variables.
  4. Free all dynamically allocated memory.
  5. Output should look something like:
Character: E
Integer: 25
String: Albert
Floating Point: 32.76
Array of Integers: 0 1 2 3 4 5 6 7 8 9
Struct: 3/4

Submit the image of the program running and of the actual code. You can paste them into a Word doc

Related Tags

Academic APA Assignment Business Capstone College Conclusion Course Day Discussion Double Spaced Essay English Finance General Graduate History Information Justify Literature Management Market Masters Math Minimum MLA Nursing Organizational Outline Pages Paper Presentation Questions Questionnaire Reference Response Response School Subject Slides Sources Student Support Times New Roman Title Topics Word Write Writing