Image placeholder
  • ホームページ
  • ConfigLinux
  • ブロ グアーカイブ

関数を使用して2つの数の交換を実現します.

218 ワード
関数を使用して2つの数の交換を実現します。

#include <stdio.h>
void swap(int *a,int *b)
{
	int tmp;
	tmp=*a;
	*a=*b;
	*b=tmp;
}
int main()
{
	int a=20;
	int b=10;
	swap(&a,&b);
	printf("a=%d b=%d",a,b);
	return 0;	
}
Is Subsequence 〜leetcode〜
Java:デザインモードのBuilder

©2022 jpdebug.com. All Rights Reserved. | Privacy Policy | Contact US | Sitemap

🍪このウェブサイトは、あなたが我々のウェブサイトで最高の経験を得ることを確実とするために、クッキーを使います。 プライバシー条項の表示