Thursday, 20 March 2014

SOME CONVERSION SPECIFIERS

  • p
         —Displays pointer value (address)
  • n
         —Stores number of characters already output by current printf statement.
         —Takes a pointer to an integer as an argument.
         —Nothing printed by a %n specification.
         —Every printf call returns a value.
  1.         Number of characters output
  2.         Negative number if error occurs
  • %


         —Prints a percent sign 
         —%%

No comments:

Post a Comment