Imprime ancho de campo y precisiones
c:
#include <stdio.h>
#include <conio.h>
main()
{
int x= 123456, y;
int i= 873;
float f= 123.94563;
char s[] = "Facultad de Telematica";
clrscr();
printf("La direccion de x es %p \n\n", 038;x);
printf("Caracteres utilizados: %n", 038;y);
printf("%d \n\n",y);
y= printf("Total de caracteres: ");
printf("%d \n\n",y);
printf("Imprimiendo el simbolo de %% \n\n");
printf("%4d \n",1);
printf("%4d \n",12);
printf("%4d \n\n",123);
printf("%.4d \n",i);
printf("%.3f \n",f);
printf("%.3e \n",f);
printf("%.11s \n",s);
getch();
return 0;
}
#include <conio.h>
main()
{
int x= 123456, y;
int i= 873;
float f= 123.94563;
char s[] = "Facultad de Telematica";
clrscr();
printf("La direccion de x es %p \n\n", 038;x);
printf("Caracteres utilizados: %n", 038;y);
printf("%d \n\n",y);
y= printf("Total de caracteres: ");
printf("%d \n\n",y);
printf("Imprimiendo el simbolo de %% \n\n");
printf("%4d \n",1);
printf("%4d \n",12);
printf("%4d \n\n",123);
printf("%.4d \n",i);
printf("%.3f \n",f);
printf("%.3e \n",f);
printf("%.11s \n",s);
getch();
return 0;
}