Use pointers to exchange (swap) two float numbers in c++
Answers
Answered by
1
Answer:
C++ program to swap two numbers using pointers
#include<iostream.h>
#include<conio.h>
void main() {
clrscr();
int *a,*b,*temp;
cout<<“Enter value of a and b:”;
cin>>*a>>*b;
temp=a;
Explanation:
please mark me brelient
Similar questions
Science,
2 hours ago
Environmental Sciences,
2 hours ago
English,
2 hours ago
English,
4 hours ago
History,
4 hours ago
Social Sciences,
7 months ago
Biology,
7 months ago