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

#include { printf("Hello"); } how compile time affects when we add additional header file .

1889


Explain the use of function toupper() with and example code?

1123


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1169


What is dangling pointer in c?

1213


Why do we use header files in c?

1067


What are pointers really good for, anyway?

1061


What is the importance of c in your views?

1170


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1271


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1275


What is a function simple definition?

1093


Explain what is wrong with this statement? Myname = ?robin?;

1566


Give the rules for variable declaration?

1173


can anyone please tell about the nested interrupts?

2112


Explain #pragma statements.

1043


What is the difference between exit() and _exit() function in c?

1073