Create a simple code fragment that will swap the values of two variables num1 and num2.
Answer / Nandan Singh
In C, you can use a temporary variable to swap the values of two variables like so:n`n int temp = num1;n num1 = num2;n num2 = temp;n`
| Is This Answer Correct ? | 0 Yes | 0 No |
difference between spiral and waterfall model
What is table lookup in c?
Write a program to know whether the input number is an armstrong number.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is spark map function?
What is static memory allocation? Explain
What is a loop?
Explain why C language is procedural?
What does the file stdio.h contain?
Can you think of a way when a program crashed before reaching main? If yes how?
What is the difference between far and near ?
What is the difference between ‘g’ and “g” in C?