Jump to content

File:Printf.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 525 × 125 pixels, file size: 91 KB)

Summary

Description Example diagram of the printf function in the C programming language
Date
Source Own work
Author Surachit

{{ImageNote|id=1|x=748|y=80|w=6|h=27|dimx=755|dimy=175|style=2}} There should be a right parenthesis here before the semicolon. My browser will render the SVG directly, with the right parenthesis shown, but the semicolon is not shown. I looked at the XML codes, and it seems to contains a lot of useless codes. Maybe somone who has a account here can fix it {{ImageNoteEnd|id=1}} {{ImageNote|id=1|x=271|y=103|w=11|h=10|dimx=525|dimy=125|style=2}} Space missing! {{ImageNoteEnd|id=1}} {{ImageNote|id=1|x=302|y=50|w=28|h=21|dimx=525|dimy=125|style=2}} This needs to be "%4.2f" or you need to add a space between "Float" and "3.14" in the output. {{ImageNoteEnd|id=1}}

Licensing

I, Surachit, the copyright holder of this work, hereby publishes it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution: I, Surachit
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
Attribution: I, Surachit
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Captions

Input: 'printf("Color %s, Number %d, Float %3.2f", "red", 123456, 3.14);' Output: 'Color red, Number 123456, Float 3.14'

Items portrayed in this file

depicts

23 July 2007

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:19, 26 July 2022Thumbnail for version as of 16:19, 26 July 2022525 × 125 (91 KB)INDTchanged %4.2f to %3.2f
00:01, 15 November 2015Thumbnail for version as of 00:01, 15 November 2015525 × 125 (91 KB)ToBeFree"%5.2f" was incorrect (needs to be "%4.2f" or a space has to be added to the output).
20:46, 3 October 2010Thumbnail for version as of 20:46, 3 October 2010525 × 125 (91 KB)LeeharrMake number input match output (1234567 -> 123456).
23:15, 21 April 2010Thumbnail for version as of 23:15, 21 April 2010525 × 125 (90 KB)Tsaitgaistfixed missing "
16:55, 24 January 2010Thumbnail for version as of 16:55, 24 January 2010525 × 125 (71 KB)LeeharrArrow from "red" should point to %s instead of Color.
12:22, 20 December 2009Thumbnail for version as of 12:22, 20 December 2009525 × 125 (71 KB)Surachitfix again
12:13, 20 December 2009Thumbnail for version as of 12:13, 20 December 2009512 × 512 (69 KB)Surachitfix
04:47, 25 July 2007Thumbnail for version as of 04:47, 25 July 2007755 × 175 (9 KB)Surachit== Summary == {{Information |Description=Example diagram of the printf function in the C programming language |Source=self-made |Date=July 23, 2007 |Author= Surachit }} [[Category:Programm
04:35, 25 July 2007Thumbnail for version as of 04:35, 25 July 2007755 × 175 (5 KB)Surachit== Summary == {{Information |Description=Example diagram of the printf function in the C programming language |Source=self-made |Date=July 23, 2007 |Author= Surachit }} [[Category:Programm
21:14, 23 July 2007Thumbnail for version as of 21:14, 23 July 2007755 × 175 (7 KB)Surachit{{Information |Description=Example diagram of the printf function in the C programming language |Source=self-made |Date=July 23, 2007 |Author= Surachit }} Category:Computer programming

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata