This can achieved through the use of suppression char ‘*’ in the format string of printf( ) which is shown in the following program.
main( )
{
int p = 2 ;
float n = 12.126487687 ;
printf ( “%.*f”,p, n ) ;
}
This can achieved through the use of suppression char ‘*’ in the format string of printf( ) which is shown in the following program.
main( )
{
int p = 2 ;
float n = 12.126487687 ;
printf ( “%.*f”,p, n ) ;
}
Programming Interview Questions And Answers is proudly powered by WordPress. Theme by SwiftThemes.Com in cooperation with Web Host Gear
Powered by Yahoo! Answers