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<stdio.h>
#include<conio.h>
void main()
{
char far *p=(char far *)0xb8000000;
*p=’A';
getch();
}
#include<conio.h>
void main()
{
char far *p=(char far *)0xb8000000;
*p=’A';
getch();
}
0 komentar:
Posting Komentar