How to swap two values using a single variable ?

condition: Not to use Array and Pointer ?

Answer Posted / vignesh1988i

GOOD MORNING,
swapping itself means that there must be minimum 2
variables ... if there is the way for above , that one is
not called as swapping......

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In C language, a variable name cannot contain?

745


How can you read a directory in a C program?

651


What is %lu in c?

687


What are types of preprocessor in c?

617


all c language question

1875






Why header file is used in c?

577


What is the difference between call by value and call by reference in c?

621


What is null pointer constant?

594


Is python a c language?

552


Explain how can you check to see whether a symbol is defined?

663


What are register variables? What are the advantage of using register variables?

687


Is c procedural or object oriented?

580


What is the best way to comment out a section of code that contains comments?

784


How do we declare variables in c?

571


Tell us two differences between new () and malloc ()?

614