i
TRUGlobal
Filter interviews by
It was easy to crack
Program to swap two numbers using a temporary variable
Declare three variables: a, b, temp
Assign values to a and b
Store the value of a in temp
Assign the value of b to a
Assign the value of temp to b
Numbers are now swapped
Top trending discussions
Senior Software Engineer
17
salaries
| ₹9.5 L/yr - ₹20 L/yr |
Software Engineer
13
salaries
| ₹4 L/yr - ₹13 L/yr |
Senior IT Recruiter
11
salaries
| ₹4 L/yr - ₹7.5 L/yr |
Lead Consultant
10
salaries
| ₹20 L/yr - ₹29 L/yr |
Lead Developer
9
salaries
| ₹16.5 L/yr - ₹30 L/yr |
TCS
Infosys
Wipro
HCLTech