Write a program to exchange two variaables without temp

Answer Posted / vijay

main()
{
int a, b;
a=a+b;
b=a-b;
a=a-b;
}

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c weakly typed?

579


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1907


Explain how can I right-justify a string?

625


Why is c faster?

592


Write a program to find factorial of a number using recursive function.

646






What happens if header file is included twice?

653


How many types of operators are there in c?

615


What is typedef?

678


What are inbuilt functions in c?

560


Multiply an Integer Number by 2 Without Using Multiplication Operator

320


Why static variable is used in c?

556


Write a program of prime number using recursion.

619


How main function is called in c?

629


what are bit fields in c?

606


Write a C program in Fibonacci series.

635