C Program to Swap Two Numbers Using Pointers | Learn Coding

preview_player
Показать описание
C language Pointer Tutorial...! 👇👇👇

Please Subscribe our Channel...!
Learn Coding
🙏🙏🙏

Like our Facebook Page..!
Learn Coding

Don't forget to tag our Channel...?
#Pointer
#ask4help
#LearnCoding
#cprogramming
#cppprogramming
#SwapTwoNumbersUsingPointer
Рекомендации по теме
Комментарии
Автор

Thank u sirWithout temp ka v video banaiye sir

pujapaswan
Автор

Aapki vdo se two no add samjh m aa gya tha fir khud se swap ka bnaya hu same to same logic lagaya h bs variable change h mera concept clr h sir thank u
Or h sir placement lavael ka questions btao jo pointer m ho 🙏👍👍

ujjalsingh
Автор

Very excellent I understand thanks sir

ujjwlarashinkar
Автор

Sirji product of more than 2 numbers ka programme kaise karen?

sakshampandey
Автор

Make video without using third variable

naina
Автор

Sir how can we swap 10 or more numbers

aheelpt
Автор

//swap two numbers using pointer
#include <iostream>
using namespace std;
int main() {
int a=4, b=3, temp;
int *ptr=&temp;
cout<<"Before swapping : ";
cout<<"\n a= "<<a;
cout<<"\n b= "<<b;
*ptr=a;
a=b;
b=*ptr;
cout<<"\nAfter swapping : ";
cout<<"\n a= "<<a;
cout<<"\n b= "<<b;


return 0;
}
Can i do it like this ?

kunalgaikwad