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
What is c programming structure?
What do mean by network ?
What is structure data type in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
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?
What is a program flowchart and explain how does it help in writing a program?
How can I run c program?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What are header files and what are its uses in C programming?
Difference between Function to pointer and pointer to function
Differentiate between a structure and a union.
can any one provide me the notes of data structure for ignou cs-62 paper
What is the difference between malloc calloc and realloc in c?
What tq means in chat?
What is methods in c?