This commit is contained in:
2025-09-19 16:32:47 +03:00
parent e1b9f50edc
commit a92349ee38
12 changed files with 374 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#include <stdio.h>
int main(void) {
puts("Num adder with pointer!");
int num1, num2;
int *p1 = &num1;
int *p2 = &num2;
puts("Enter p1 and p2!");
scanf("%d", &num1);
scanf("%d", &num2);
printf("Total:%d\n", (*p1) + (*p2));
return 0;
}