#include
int i.j,temp;
int main () {
i=3;
j=5;
temp = i;
i = j;
j = i;
printf("i=%d j=%d\n",i,j);
printf("%d %d\n",i,j);
}
where i am went wrong.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 8, 2012, 4:57 AM
int i.j,temp;
it should compile OK.
However, if you're wanting to swap the values of i and j so that they become 5 and 3 respectively then you'll need to alter the code to:
Nattudurai EswaramurthyPosted Aug 8, 2012, 3:10 AM