Computer Science, asked by seed55735, 4 hours ago

Use pointers to exchange (swap) two float numbers in c++

Answers

Answered by DakshRaj1234
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