Florida State College at Jacksonville Programming Project

  • 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.76The 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. Submit the image of the program running and submit the .c file
  6. Output should look something like:

Character: EInteger: 25String: AlbertFloating Point: 32.76Array of Integers: 0 1 2 3 4 5 6 7 8 9Struct:3/4

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER