//AN IMPLEMENTATION TO SHOW WORKING OF DIIFRENT SPECIFIERS WITH DIFFRENT LIKE (%3.6d)///
#include<stdio.h>
int main()
{
printf("%s\n","HELLO");//will print the string HELLO
printf("1st num=%d\n",123);//PRINT 123
printf("2nd num=%**d\n",25);// %25*d..prints all the characters as it is,with 25 value//25 in the place of 1 *
printf("3rd num=%6.15d\n",25);//leaves the space of 6....& prints 15 characters by 0 padding at starting of the 25,,,means 00000000000000025
printf("4th num=%****15d\n",25);//%25***15d//25 in the place of 1 star
printf("5th num=%15d\n",25);//leaves the space of 15 for printing 25
printf("6th num=%000000000000d\n",25);//leaves no space in printing 25//works normal
printf("7th num=%116d\n",25);//leaves the space such that it will..get the 25 into new line
printf("8th num=%bd\n",25);//25 is not printed ..%bd will be printed
//printf("9th num=%\d\n",25);//will give u error
printf("\n\n");
printf("1st=%i\n",12355554);//will prits the int value
printf("1st=%i\n",12355554.75);//as %d behaves..prints some garbage
printf("1st=%i\n",'A');//prints ascii value of character
printf("\n\n");
printf("\n\n");
printf("float=%5.2f\n",3.14567);//x.2 will print 2 letters after decimal .........x will left spaces before writing the float number.....for eg 5.2f will print 2 letters after decimal/..//
printf("float2=%115.4f\n",3.14567);//x.2 will print 4 letters after decimal ...value of x defines the space left before writting float number...for eg 5.4f will print 4 letters after decimal/..//
printf("float3=%134f\n",3.14567);//space will be left for writing float..by default..6 letters will be printed after decimal
printf("float=%18.0f\n",3.14567);//just leaves the space of 18 & no value will be printed aftr the decimal
printf("\n\n");
printf("HEXADECIMAL=%x\n",255);//convert value into hexadecimal///but print no sign before number means ff will be printed
printf("HEXADECIMAL=%p\n",255);//convert value into heaxadecimal ///but print sign before number means ..0xff will be printed...mainly it is used to print addresses..//..
printf("octal=%o\n",255);//%o will print octal value//
printf("unsigned value%u\n",255);
printf("just =%%\n",10);//will print just single %
printf("just =%a\n",10);//will print ...
printf("just =%e\n",10);//will print long double
//printf("just =%n\n",10);//will give u segmentation fault