Introduction
In C programming, pointers are used to handle the addresses of variables. Here, we will learn how to add two numbers using pointers in C programming.
Note: You need to create the file ~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
c(("`C`")) -.-> c/UserInteractionGroup(["`User Interaction`"])
c(("`C`")) -.-> c/BasicsGroup(["`Basics`"])
c(("`C`")) -.-> c/PointersandMemoryGroup(["`Pointers and Memory`"])
c/UserInteractionGroup -.-> c/output("`Output`")
c/BasicsGroup -.-> c/variables("`Variables`")
c/BasicsGroup -.-> c/data_types("`Data Types`")
c/BasicsGroup -.-> c/operators("`Operators`")
c/UserInteractionGroup -.-> c/user_input("`User Input`")
c/PointersandMemoryGroup -.-> c/memory_address("`Memory Address`")
c/PointersandMemoryGroup -.-> c/pointers("`Pointers`")
subgraph Lab Skills
c/output -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/variables -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/data_types -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/operators -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/user_input -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/memory_address -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
c/pointers -.-> lab-123192{{"`Adding Two Numbers Using Pointers`"}}
end