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
#include
Explain the use of function toupper() with and example code?
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
What is dangling pointer in c?
Why do we use header files in c?
What are pointers really good for, anyway?
What is the importance of c in your views?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is a function simple definition?
Explain what is wrong with this statement? Myname = ?robin?;
Give the rules for variable declaration?
can anyone please tell about the nested interrupts?
Explain #pragma statements.
What is the difference between exit() and _exit() function in c?