User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:stdio.h:swap

This is an old revision of the document!


swap

    double swap(double* px, double* py)

Description

swap two numbers implicit, also also a function arguments are converted

C Sourcecode Example

/* 
 * swap example code
 * http://code-reference.com/c/stdio.h/swap
 */
#include <stdio.h> /* including standard library */
 
int main( void )
{
    int x=2, y=4;
 
    swap(x,y);
    printf("x=%d y=%d",x,y);
    return 0;
}

fgetpos example output

  x=4 y=2

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/stdio.h/swap.1361071471.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz