#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 / chitra
10 5
5 5
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
What is the meaning of c in c language?
i want to know the procedure of qualcomm for getting a job through offcampus
Tell me is null always defined as 0(zero)?
Why are algorithms important in c program?
what are enumerations in C
What is structure in c language?
What is scope and lifetime of a variable in c?
Do you know null pointer?
Explain pointers in c programming?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Explain what is #line used for?
p*=(++q)++*--p when p=q=1 while(q<=6)
Explain what are header files and explain what are its uses in c programming?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Can you assign a different address to an array tag?