Professional Documents
Culture Documents
Pointers Example19
Pointers Example19
Pointers Example19
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
age=20;
/* The address is the address of the first byte in the variable age */
ptr1=&age;
weight=65.5;
ptr2=&weight;
*ptr1=2*(*ptr1)+1;
(*ptr2) +=1.0;
return(0);
www.josephboutros.org/ecen210/classroom/pointers_example1.c 1/1