C Program To Swap Two Numbers using Pointers

preview_player
Показать описание

Lets write a C program to swap 2 numbers using pointers and function.

When we call the function, we pass the reference or address of the variable, so this method is called "Call by Reference".

Expected Input and Output
Enter values for a and b
100
200

Before swapping: a = 100 and b = 200

After swapping: a = 200 and b = 100

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Great video. what is the IDE you are using?

yohannesnurga
Автор

which compiler are you using?
like devc++

Ashish-hlrk
Автор

which application u use to do these program??

ServineGaming-Superiors