- Problem Description Write A Program That Performs The Following In The Same Order O Declares An Integer Variable Named M 1 (55.39 KiB) Viewed 18 times
Problem Description Write a program that performs the following in the same order o Declares an integer variable named m
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Problem Description Write a program that performs the following in the same order o Declares an integer variable named m
Problem Description Write a program that performs the following in the same order o Declares an integer variable named m,float variable named fx, and character variable named cht. o Prompts the user to enter a value and store it in m, fx, and cht. o Print the value of m, fx, and cht. o Declares a pointer that can point to an integer, float, and character named p1, p2, and p3. o Make the pointer p1 pointed to the location of the variable m. o Make the pointer p2 pointed to the location of the variable fx. Make the pointer p3 pointed to the location of the variable cht. o o Using dereference operator, print the value of the variable pointed to by p1, p2, and p3. o Print the memory address of m, fx, and cht. o Print the address stored in p1, p2, and p3. o Prompts the user to enter another value and store it in m using the pointer p o Print the value of m o Using dereference operator, print the value of the variable pointed to by p1 o Increment x by 1 o Print the value of m o Using dereference operator, print the value of the variable pointed to by p1