Posts by Alex_Silva • 3 points
1 post
-
-1
votes1
answer28
viewsQ: Why am I making a mistake adding two numbers using pointers?
#include <stdio.h> int* adicionar(int *a,int *b) { int c = *a + *b; return &c; } int main() { int primeiro, segundo; int* temp; scanf("%d%d",&primeiro, &segundo); temp =…