User Tools

Site Tools


c:stdio.h:swap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:stdio.h:swap [2013/02/17 04:24]
Daniel Gohlke undefined reference.... remove
— (current)
Line 1: Line 1:
-{{keywords>wiki library source code example reference}} 
-====== swap ====== 
  
-<code c> 
-    double swap(double* px, double* py) 
-</code> 
- 
- 
-=== Description === 
-swap two numbers implicit, also also a function arguments are converted 
- 
-===== C Sourcecode Example ===== 
-<code c> 
-/*  
- * 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; 
-} 
-</code> 
-==== fgetpos example output ==== 
-    x=4 y=2 

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz