#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}

int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}

what are the outputs?

Answer Posted / goodhunter

10 5
10 5

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to identify if a given binary tree is balanced or not.

672


How can I manipulate individual bits?

595


Where are c variables stored in memory?

589


What are identifiers in c?

621


What is the value of h?

579






what is bit rate & baud rate? plz give wave forms

1508


What is ponter?

761


Can you please explain the scope of static variables?

591


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

692


Explain bit masking in c?

622


what are # pragma staments?

1615


What is structure in c language?

608


What is a function in c?

563


What is non linear data structure in c?

560


What is the purpose of ftell?

593