Which code would you prefer and why? Program to swap values using pointers

前端 未结 0 1584
抹茶落季
抹茶落季 2021-01-24 23:32

This is a program to swap two numbers using pointers.

#include
#include

void swap(int *x, int *y){
    int temp = *x;
    *x = *y;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题