how to swap 2 numbers in a single statement?

Answer Posted / pedda

t=a;
a=b;
b=t;
t means temporary value

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between actual and formal arguments.

595


What is string length in c?

620


What is || operator and how does it function in a program?

637


Explain what happens if you free a pointer twice?

619


What is 2 d array in c?

568






What are types of preprocessor in c?

624


How can I manipulate strings of multibyte characters?

643


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2028


How can I ensure that integer arithmetic doesnt overflow?

614


How do you search data in a data file using random access method?

844


What is the c language function prototype?

654


Is a house a mass structure?

648


Explain what are global variables and explain how do you declare them?

645


Explain how many levels deep can include files be nested?

632


How can you convert integers to binary or hexadecimal?

624