Skip to content
Snippets Groups Projects
Commit 34f042e5 authored by Hazal2.Veziroglu@live.uwe.ac.uk's avatar Hazal2.Veziroglu@live.uwe.ac.uk
Browse files

Upload New File

parent a1732518
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
int main() {
int n = 10;
int *ptr_to_n = &n;
// Increment the value of n using the pointer
(*ptr_to_n)++;
printf("Value of n after increment: %d\n", n);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment