I WANT THE SOLUTION AS SOON AS POSSIBLE IN
C
Pre-Lab Exercise Objectives ➤ Pointer definition and initialization 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. o Make the pointer p3 pointed to the location of the variable cht. 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
I WANT THE SOLUTION AS SOON AS POSSIBLE IN C
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am