sampai sini -->

06 January, 2010

C Prog - Print a Character without using any Output Statements








This program can be used to print character without using any output statements. This program only works in 16-bit mode since it directly writes to VDU Memory.


#include
#include
void main()
{
char far *p=(char far *)0xb8000000;
*p=’A';
getch();
}

3 comments:

  1. it gives an error saying

    “cannot convert unsigned long to char far*”

    ReplyDelete
  2. try this

    char far *p=(char far*)0xb8000000;

    ReplyDelete
  3. Cool dude………

    ReplyDelete

YOUR NUMBER :

frontpage hit counter nasnur hit counter and User Online