November 2012 Entries

format for string output

Normal 0 false false false EN-US X-NONE X-NONE ... More

format for floating point numeric input

Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:0in; mso-para-margin-left:-13.7pt; mso-para-margin-bottom:.0001pt; line-height:200%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Book Antiqua","serif"; mso-ascii-font-family:"Book Antiqua"; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:"Book Antiqua"; mso-hansi-theme-font:minor-latin;} Normal 0 false false false EN-US X-NONE X-NONE   3.format for floating point numeric input %w.n f Where w is the integer number specifying the total width of the input data and n spefies number of digits after decimal point . Ex- Scanf(“%3.11 %4.2f “,&a,&b); Conditions- (1) When input data length is less then the given length then the given values are unaltered and tored in the given variable... More

formated input and out put data

Normal 0 MicrosoftInternetExplorer4 Formated input and out put Formatted input means that data is arranged   in a particular   format and formatted out means that the out put is displayed in such a way that   they are in understandable and easy –to –use form .So we c an say that through format specification better presentation of result can be obtained .Formats for different specifiaction are as – 1.Format for integer  Input%wd Where w is an integer number specifying   the width of input data. ‘d’ is the conversion specification character for integer   value. Ex- Scanf(“%2d %3d”, &a,&b); Condition- (i)When input data length is less than the given length ,Then   the given values are unaltered and stored and stored in given variables Input: 26  39 Result: 26 is stored in a and 39 is stored in b (ii) When input data length is equal   to the given length, then the given values are unaltered and                       Stored in given variables.       Input: 26   394  Result: 26 is stored in a and 394 is stored in b 3) when input data length is more   ... More

writing out put data in C

Normal 0 MicrosoftInternetExplorer4 Writing  out put data     Out put data  can be  written  from  computer  memory to the standard  output  device (monitor) or to  another  file .C  provides  the  printf( ) library function  for  writing  output  data .with   this  function  all type  of  values(numeric character  or string) can be  written  as output .The  printf( ) function  moves  data  from  computer  m emory  to the standard  output  device ,,whereas  scanf() function  takes  the  input  data from  standard  input  device  and store   it to the  computer  memory. The printf function can be  written  as - Print(“control  string  “, variable 1,variable2………)    In this  function  the control  string ... More

Copyright © Afsana Bano

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski

Advertisements at BlogUnlimited.com