Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

print a "hello" word without using printf n puts in c language

Answer Posted / anil h m

#include <stdio.h>
int main() {
char *p = "Welcome to C!
";
long l = 14;
long fd = 1;
long syscall = 1;
long ret = 0;
__asm__ ( "syscall"
: "=a" (ret)
: "a" (syscall),
"D" (fd),
"S" (p),
"d" (l)
);
return 0;
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of a semicolon (;) at the end of every program statement?

1413


How can my program discover the complete pathname to the executable from which it was invoked?

1034


Write a program to print “hello world” without using semicolon?

1077


What is sizeof in c?

955


What is keyword in c?

962


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1018


What is a macro, and explain how do you use it?

1016


Can you please explain the difference between exit() and _exit() function?

993


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2075


What is a structure in c language. how to initialise a structure in c?

1020


Why we use break in c?

935


What is a header file?

1029


p*=(++q)++*--p when p=q=1 while(q<=6)

1698


What is a far pointer in c?

990


Tell me with an example the self-referential structure?

941