Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Write a programs in c++ that exchange data using swap function to interchange the given two number
output
0 Votes
2 Answers
29th Jul 2017, 4:47 AM
PIYUSH CHITATWAR
Swapping two numbers in c programming
arrays
c
pointer
swap
0 Votes
8 Answers
7th Oct 2024, 8:40 PM
Prakash Kumar Jaiswal
Try to develop a snippet to swap two numbers without using third variable and must use single statement .
c
c++
java
javascript
python3
1 Vote
3 Answers
28th Aug 2017, 5:47 PM
Pooja Murugesan
How to write a C Function to swap elements of 2 arrays according to the smallest array in size
arrays
c
code
swap
0 Votes
1 Answer
14th Oct 2018, 12:24 PM
Aisha Ali
Write a programm in python to read 3 numbers in 3 variables and swap the first two numbers with sum of 1st and 2nd &2nd and 3rd
float
print
2 Votes
3 Answers
15th Jul 2018, 8:30 AM
Sushmita
Input a list of numbers and swap elements at the even location with the elements at the odd location.please tell any other appro
python
python3
1 Vote
3 Answers
30th Jan 2022, 5:12 PM
Aditya Pradhan
String has combination of vowels and consonants.if there are any two vowels are adjacent to each other then swap those two vowel
java
1 Vote
3 Answers
28th Sep 2018, 3:29 AM
Nagapavan
How many stacks do we want if we need to swap 2 stacks members in the same order?
data
stack
struture
swap
0 Votes
2 Answers
17th Jun 2017, 2:40 AM
Khaled Mohammed Saif Alselwi
I don't understand the logic behind swapping without temp var, plz help.
c#
reference
swap
0 Votes
2 Answers
7th Feb 2019, 6:51 PM
Scadian Force
The problem is finding the smallest and largest number of 10 inputs. Then swap the position of the largest and the smallest num
c
0 Votes
2 Answers
24th Oct 2022, 6:57 AM
NPCcode
Input a four digit no. & Swap the first & last digit of no. And second & third digit will remain same
python
0 Votes
3 Answers
22nd Jul 2018, 1:02 PM
Ayush Verma
A C++ Program To Swap Two Numbers x and y if x is greater than y. Output both numbers
c++
0 Votes
1 Answer
30th Apr 2020, 9:45 AM
Nathaniel Kwaku Awenate
The program accepts unique integers x y and z as input.The program must swap the largest and second largest integers and print
above
c
in
program
solve
the
-1 Vote
4 Answers
11th Jan 2019, 1:44 PM
Padmapriya Ravichandran
Swap 2 Nibbles in a byte & find the output of the swapped Nibbles after converting a Decimal Number to a Binary Number.
javascript
python3
0 Votes
2 Answers
23rd Jan 2020, 3:22 PM
Prithvi
Why does swap function from stl when used in selection sort increases the execution time from 19900 ns to 2 ,3 times much?
c++
2 Votes
2 Answers
5th Oct 2020, 11:53 AM
Abhay
Q/Write code c# or c++.. to swap each digits in any number ...for example. .you enter 1234? .. the results of code = 1243..
c#
c++
0 Votes
6 Answers
21st Jan 2017, 9:10 AM
jabar
Challenge :: Make a program to convert case of every character in a string.
c++
case
challenges
string
swap
3 Votes
9 Answers
23rd Jan 2018, 9:35 AM
Clay Jensen
How do you know which value to enter in the method of value swap?
c#
methods
swap
0 Votes
1 Answer
26th Aug 2019, 12:38 PM
Ray K'lo Cannon
Changing dictionaries into some list? and swapping key with value
dictionaries
key
list
pyhton
swap
value
9 Votes
2 Answers
23rd Jun 2018, 8:30 PM
Muhammad Hasan
How can I solve this problem?
bits
bytes
c
functions
swap
1 Vote
7 Answers
6th Sep 2018, 2:33 AM
Retag Tarek
Swap. Final exam preparation question *question is in the answer section***
c++
functions
pointers
swap
vectors
4 Votes
6 Answers
2nd Dec 2017, 11:09 AM
F7917795
Can someone help me to create a program which take two variable and swap them with the help of a temporary variable.
c++
cin
cout
0 Votes
2 Answers
25th Jul 2016, 1:29 AM
himanshu ramawat
Is there a list function that swaps two items in a list?
functions
list
list-functions
swap
2 Votes
1 Answer
20th Feb 2017, 2:30 AM
Erik Johanson
A coding challenge using exponents
challenge
code
cube
digit
half
last
pair
square
swap
8 Votes
6 Answers
11th Dec 2022, 11:22 AM
GiantJupiter
Given a table SALARIES, such as the one below, that has m = male and f = female values. Swap all f and m values (i.e., change al
challenge
0 Votes
1 Answer
21st Dec 2016, 5:24 AM
Akwin Lopez
String move?
algorithm
c#
move
string
swap
0 Votes
1 Answer
7th Aug 2017, 5:15 PM
Amirali nedaee
Cam someone clearly explain why 'int &x' takes the value of a not 'int x'
by
c++
pass
pointers
reference
swap
1 Vote
2 Answers
9th Mar 2018, 8:46 AM
Neeraj Jadhav
[C++ Help] I'm trying to conversion by using vector and string but when loop back it error
c
c++
capitalize
conversion
do-loop
erase
name
string
swap
vector
1 Vote
3 Answers
27th Oct 2019, 4:04 AM
Phuc Hoang Trinh
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
3
4
Next >
Hot today
Sticky position
3 Votes
Help please?
3 Votes
Hi Friends , how to compile a java code on android.
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Odd even threads without condition variable
0 Votes