This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/Exercises/C13/assigning_pointers.c

24 lines
370 B
C

#include <stdio.h>
#include <stdlib.h>
int main (void )
{
// Integer variables
int a, ValueB, d;
// integer pointers
int *ptrA=&a, *B=&ValueB, *Data=&d;
// Float variables
float f,y,z;
// Float pointers
float *pf=&f , *q=&y, *Zvalue=&z;
// We could also do this on separate lines e.g.
int SomeData;
int *Another;
Another = &SomeData;
return 0;
}