Answers for "How to use pointers in C"

C
1

poiner in c

int* pc, c, d;
c = 5;
d = -15;

pc = &c; printf("%d", *pc); // Output: 5
pc = &d; printf("%d", *pc); // Ouptut: -15
Posted by: Guest on July-01-2020
2

how to make pointers in c

datatype *var;

variable var actually holds the address of the data(memory where it is stored)
*var lets you access the data stored at that address
Posted by: Guest on May-02-2021

Code answers related to "C"

Browse Popular Code Answers by Language