Search My BLOG
Free Translater For All Languages
Mobile Phone Location Tracker
phone number location and operator in India
Just enter 10 digits phone number in the search box and click on Trace.
All The Best !!!!!
Thursday, November 12, 2009
C Program To Print A String Without Using Any Output Statements
This program can be used to print a string without using any output statements such as printf,puts etc.However this program only works in 16-bit mode since it directly writes to VDU Memory.
#include
#include
char str[]=”Hello Srikanth”;
char far *v=(char far *)0xb8000000;
void main()
{
int i;
for(i=0;i<14;i++)
{
*v=str[i];
v+=2;
}
getch();
}
#include
char str[]=”Hello Srikanth”;
char far *v=(char far *)0xb8000000;
void main()
{
int i;
for(i=0;i<14;i++)
{
*v=str[i];
v+=2;
}
getch();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment