English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

Are you really asking about swapping int values? This is trivial.
int m=10, n=9;
int temp = m;
m=n;
n=temp;

2006-10-30 19:55:05 · answer #1 · answered by vincentgl 5 · 0 0




m=10

n=9




2006-10-25 21:44:47 · answer #2 · answered by Servius Tullius 2 · 0 0

fedest.com, questions and answers