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
Explain what is a stream?
Write a program to print factorial of given number without using recursion?
What is #include stdio h and #include conio h?
what are the advantages of a macro over a function?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Explain about the constants which help in debugging?
What are file streams?
What is the difference between break and continue?
What is getch () for?
Where local variables are stored in c?
Why is this loop always executing once?
Explain null pointer.
c language interview questions & answer
How can I find the modification date of a file?
What does 1f stand for?