Interview question in C Programming| Type 1 - Swapping two variable using temp variable

Опубликовано: 29 Сентябрь 2024
на канале: Simply Done
71
3

#cprogramming #interview #programming #interviews #interviewtips

Swapping two number is a commonly asked question in C programming interview. Although it seems easy still there are many ways in which we can present our answer and solve this question.

There are three basic ways to swap two number -
1. by using temporary variable
2. by using arithmetic operations
3. by using logical operations

follow on instagram   / linux.programming  
join telegram group https://web.telegram.org/#/im?p=g4603...