Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help building a program that performs the followingoperations: . 1. Decla

ID: 3613233 • Letter: I

Question

I need help building a program that performs the followingoperations: . 1. Declares three pointer variables called iPtr of type int,cPtr of type char, and fFloat of type float. . 2. Declares three new variables called iNumber of int type,fNumber of float type, and cCharacter of char type. . 3. Assigns the address of each non-pointer variable to thematching pointer variable. 4. Prints the value of each non-pointer variable. 5. Prints the value of each pointer variable. 6. Prints the address of each non-pointer variable. 7. Prints the address of each pointer variable. . Thanks in advance. I need help building a program that performs the followingoperations: . 1. Declares three pointer variables called iPtr of type int,cPtr of type char, and fFloat of type float. . 2. Declares three new variables called iNumber of int type,fNumber of float type, and cCharacter of char type. . 3. Assigns the address of each non-pointer variable to thematching pointer variable. 4. Prints the value of each non-pointer variable. 5. Prints the value of each pointer variable. 6. Prints the address of each non-pointer variable. 7. Prints the address of each pointer variable. . Thanks in advance.

Explanation / Answer

#include void main() { int *iPtr;                   float *cPtr; char * cChar ; int iNumber; float fNumber; char cCharacter; iPtr = & iNumber; cPtr = & fNumber; cChar = & cCharacter; printf(" the value of each non pointer variable is %d %f %c ",iNumber, fNumber,cCharacter); printf(" the value of pointer variable %s %s%s" , iPtr,cPtr,cChar); printf(" the address of non pointer variable %s%s%s",&iNumber,& fNumber,&cCharacte); printf(" the address of pointer variable %s%s%s",&iPtr,&cPtr, &cChar); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote