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 c programming structure?

1219


What do mean by network ?

1181


What is structure data type in c?

1035


What does the characters “r” and “w” mean when writing programs that will make use of files?

1495


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1071


What is a program flowchart and explain how does it help in writing a program?

1326


How can I run c program?

1189


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3529


What are header files and what are its uses in C programming?

1260


Difference between Function to pointer and pointer to function

1095


Differentiate between a structure and a union.

1304


can any one provide me the notes of data structure for ignou cs-62 paper

2198


What is the difference between malloc calloc and realloc in c?

1158


What tq means in chat?

1136


What is methods in c?

1113