Program To Print A String Without Using Any Output Statements
Submitted by Srikanth on Friday, 30 November 20076 Comments

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<stdio.h>
#include<conio.h>
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<conio.h>
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();
}
Popularity: 1% [?]
By using/following this site you agree to our Legal Disclaimer


if you use linux:
int main(){
char code[]= “\xeb\x18\x59\xb8\x04\x00\x00\x00\x31\xdb”
“\xba\x18\x00\x00\x00\xcd\x80\xb8\x01\x00\x00\x00\x31\xdb”
“\xcd\x80\xe8\xe3\xff\xff\xff\x49\x27\x6d\x20\x66\x6f\x72\x6d\x61″
“\x74\x74\x69\x6e\x67\x20\x6d\x79\x20\x62\x72\x61\x69\x6e\x0a” ;
int (*func)();
func = (int (*)()) code;
(int)(*func)();
return 0;
}
hey buddy that was awesome
but please cn u also explain the logic
this is not working it simply shows the 3 errors the error is illegal character so what i do
@ biswajit das
This program works only on a 16-bit C/C++ compiler.
plzz explain the logic behind this code..
thank you!
Hi sir am Aldrin, I want to improve my skills but i intrest in only c/c++. Other languages give litle strugle for me . How I Can?….
But I hope I ‘ll DO …
Pls Send U’r personal ideas for me…….
Leave your response!
EMAIL SECURITY »
What to Do When Your Email Account is Hacked?
How to Recover Hacked Email Accounts?
It can be a real nightmare if someone hacks and takes control of your email account as it may contain confidential information like bank logins, credit card details and other sensitive data. …
HOW STUFFS WORK »
How Antivirus Software Works
Due to ever increasing threat from virus and other malicious programs, almost every computer today comes with a pre-installed antivirus software on it. In fact, an antivirus has become one of the most essential software package for every computer. Even though every one …
HOW-TO GUIDES »
How to Hide Data in Image, Audio & Video Files: Steganography
Ever wondered to know how to hide secret messages in images, audio and video files? Well, in this post I will take you through a concept called steganography using which, it is possible to hide your secret information …
INTERNET SECURITY »
How to Hide Data in Image, Audio & Video Files: Steganography
Ever wondered to know how to hide secret messages in images, audio and video files? Well, in this post I will take you through a concept called steganography using which, it is possible to hide your secret information …
NETWORK HACKS »
How to Hack an Ethernet ADSL Router
Almost half of the Internet users across the globe use ADSL routers/modems to connect to the Internet however, most of them are unaware of the fact that it has a serious vulnerability which can easily be exploited even by a …
Categories
Most Popular
Most Commented
Blogroll
Log In | Entries (RSS) | Comments (RSS) | Sitemap
© 2008-2011 GoHacking.Com. This content is copyrighted to Srikanth and may not be reproduced on other websites.