/* This is the thirteenth lab of Lab EE107
The purpose of this lab to illustrate pointers
Creating the code and free of syntax and grammatical errors.
Author: Ekwegbalum Unachukwu
Star ID:do2170dt
Date: April 23rd, 2024.
*/
#include <stdio.h>
int main (void) {
// Declaration of variables
int count_EU = 10;
int *ip_EU;
ip_EU = &count_EU;
// Printing the value of count and value pointed by ip
printf("count = %i, *ip = %i\n", count_EU, *ip_EU);
// Printing the addresses of count and ip
printf("%p, %p\n", &count_EU, ip_EU);
// Assigning 4 to the memory which the pointer ip points to
*ip_EU = 4;
printf("count = %i, *ip = %i\n", count_EU, *ip_EU);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: