/*……….Hey guys this is a program made by Using the p, n, and % conversion specifiers…….. */
#include <stdio.h>
#include <stdio.h>
/*…Main Function Start’s…*/
void main()
{
void main()
{
/*…Initialization and Declaration….*/
int *ptr;
int x = 12345, y;
ptr = &x;
printf( “The value of ptr is %p\n”, ptr );
printf( “The address of x is %p\n\n”, &x );
printf( “Total characters printed on this line is:%n”, &y );
printf( ” %d\n\n”, y );
y = printf( “This line has 28 characters\n” );
printf( “%d characters were printed\n\n”, y );
printf( “Printing a %% in a format control string\n” );
getch();
}
int *ptr;
int x = 12345, y;
ptr = &x;
printf( “The value of ptr is %p\n”, ptr );
printf( “The address of x is %p\n\n”, &x );
printf( “Total characters printed on this line is:%n”, &y );
printf( ” %d\n\n”, y );
y = printf( “This line has 28 characters\n” );
printf( “%d characters were printed\n\n”, y );
printf( “Printing a %% in a format control string\n” );
getch();
}
/*…Main Function End’s…*/
No comments:
Post a Comment