Here's for me the simplest way to swap variables :
int a, b;
//Give them a value;
a=a+b;
b=a-b;
a=a-b;
Main advantage, you do not decalre a third (useless) variable. Default: hard(er) to understand for future maintainers.
@Kassem:
Nice exercises. Post your questions if you need help ;)
And about strings, you should do the exercises nontheless. A string is an array of 'char' as easy as this. However it has a final char appended to it : '\0'. So 'Kassem' would be an array :
'K' 'A' 'S' 'S' 'E' 'M' '\0' which is a 7 entries array.
So here you go, do the exercises. One day if I have time I'll argue why a good knowledge of C makes a difference between a good and a bad programmer ;)