Answers for "swap 2 structures in c"

C
0

C Programming to swap two variables

#include <stdio.h>

int main()
{
    int x = 20, y = 30, temp;
    temp = x;
    x = y;
    y = temp;
    printf("X = %d and Y = %d", x, y);
    
    return 0;
}
Posted by: Guest on June-28-2021

Code answers related to "C"

Browse Popular Code Answers by Language