how to swap 2 numbers within a single statement?

Answer Posted / ratishchandra huidrom

if(c=a&&a=b&&b=c)printf("%d %d",a,b);

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you list files in a directory?

610


What is the meaning of 2d in c?

605


What is wrong with this declaration?

606


Using which language Test cases are added in .ptu file of RTRT unit testing???

3580


What is difference between arrays and pointers?

575






What is string in c language?

617


What are variables and it what way is it different from constants?

779


What are the 5 types of inheritance in c ++?

574


What are the 5 organizational structures?

563


Write a program to reverse a given number in c language?

616


What is volatile variable in c?

654


Why is structure padding done in c?

638


What do you mean by keywords in c?

620


What is wrong with this program statement?

604


What is a program flowchart and explain how does it help in writing a program?

665