print a "hello" word without using printf n puts in c language
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / taz
ch[6]={'h','e','l','l','o','\0'};
i=0;
do
{
putchar(ch[i]);
i++;
}while(ch[i]!=NULL)
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / smith
#include<stdio.h>
#include<string.h>
void main()
{
printf("hello");
puts("hello");
}
| Is This Answer Correct ? | 3 Yes | 23 No |
Why do we use int main instead of void main in c?
what are the files which are automatically opened when a c file is executed?
What is the difference between new and malloc functions?
hi, which software companys will take,if d candidate's % is jst 55%?
What is substring in c?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is #include stdio h and #include conio h?
Write a code to remove duplicates in a string.
Explain how to reverse singly link list.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
array of pointer pointer to array pointer to pointer
How are portions of a program disabled in demo versions?