Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

Pointer and it's use

$
0
0
Generally I know pointer is use to store address of variable. I can write basic program for pointer but I am still confuse I don't understand actually what's the real real use of pointer and where we will use pointer in programming.

Code:
#include <stdio.h>

int main(void)
{
    int variable = 10;

    int *pointer = &variable;

    printf("The value of variable is: %d \n", variable);

    printf("The address of variable : %p \n", &variable);

    printf("The value of pointer...
Pointer and it's use

Viewing all articles
Browse latest Browse all 1271

Trending Articles