Write a program on swapping (100, 50)
Answer / Prem Kumar
"```n#include <stdio.h>nnvoid swap(int* a, int* b)n{n int temp = *a;n *a = *b;n *b = temp;n}nnint main()n{n int num1 = 100,n num2 = 50;n printf("Before swapping: num1 = %d, num2 = %d
", num1, num2);n swap(&num1, &num2);n printf("After swapping: num1 = %d, num2 = %d
", num1, num2);n return 0;n}n```"
| Is This Answer Correct ? | 0 Yes | 0 No |
can you change name of main()?how?
How can you dynamically allocate memory in C?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What functions are in conio h?
Explain the ternary tree?
What are the different pointer models in c?
Is array name a pointer?
What is declaration and definition in c?
Write a program to print fibonacci series without using recursion?
What is function pointer c?
what is a headerfile?and what will be a program without it explain nan example?
Does c have an equivalent to pascals with statement?