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
How many types of operator or there in c?
What is a program flowchart and how does it help in writing a program?
Can you subtract pointers from each other? Why would you?
What is strcpy() function?
What do you mean by a sequential access file?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Between macros and functions,which is better to use and why?
What is the benefit of using const for declaring constants?
What are the keywords in c?
Is c is a procedural language?
How would you rename a function in C?
Write a program to generate random numbers in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
How is null defined in c?