Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Write a programs in c++ that exchange data using swap function to interchange the given two number
output
0 Vote
2 Réponses
29th Jul 2017, 4:47 AM
PIYUSH CHITATWAR
Swapping two numbers in c programming
arrays
c
pointer
swap
0 Vote
8 Réponses
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 Réponses
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 Vote
1 Réponse
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 Réponses
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 Réponses
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 Réponses
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 Vote
2 Réponses
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 Vote
2 Réponses
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 Vote
2 Réponses
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 Vote
3 Réponses
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 Vote
1 Réponse
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 Réponses
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 Vote
2 Réponses
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 Réponses
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 Vote
6 Réponses
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 Réponses
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 Vote
1 Réponse
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 Réponses
23rd Jun 2018, 8:30 PM
Muhammad Hasan
How can I solve this problem?
bits
bytes
c
functions
swap
1 Vote
7 Réponses
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 Réponses
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 Vote
2 Réponses
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 Réponse
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 Réponses
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 Vote
1 Réponse
21st Dec 2016, 5:24 AM
Akwin Lopez
String move?
algorithm
c#
move
string
swap
0 Vote
1 Réponse
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 Réponses
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 Réponses
27th Oct 2019, 4:04 AM
Phuc Hoang Trinh
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
3
4
Suivant >
Aujourd'hui en vedette
What's wrong with this code ? ( Beginner)
4 Votes
Pig Latin
0 Votes
Someone can help me
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
Currently learning C++, I’m getting into socket programming with C++
0 Votes
Is there any new bug in the projects reply sections?
1 Votes
why do people say programming is hard
0 Votes
I’m new someone can help me
0 Votes