/*WAP to Formatting*/
#include<stdio.h>
#include<conio.h>
main( )
{
int i = 10 ;
char ch = 'A' ;
float a = 3.14 ;
char str[20] ;
printf ( "\n%d %c %f", i, ch, a ) ;
sprintf ( str, "%d %c %f", i, ch, a ) ;
printf ( "\n%s", str ) ;
getch();
}



No comments:
Post a Comment