Click on image to see enlargment
Prof. Otidnab is preparing a report to display his latest atmospheric temperature model. But he's getting results that even he doesn't believe. Can you find the problem?
bug559.cpp lint Output
--- Module: bug559.cpp (C++) _ printf( "%d\n", t ); bug559.cpp(16) : Warning 559: Size of argument no. 2 inconsistent with format
Reference Manual Explanation
559 size of argument number Integer inconsistent with format -- The given argument (to printf, sprintf, or fprintf) was inconsistent with that which was anticipated as the result of analyzing the format string. Argument counts begin at 1 and include file, string and format specifications. For example, sprintf( buffer, "%f", 371 ) will show an error in argument number 3 because constant 371 is not floating point.
Previous Bug - Bug #564 - December 2011