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 |
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What are the back slash character constants or escape sequence charactersavailable in c?
Why can't we initialise member variable of a strucutre
What is a example of a variable?
how to write palindrome program?
What is the easiest sorting method to use?
write a program to generate 1st n fibonacci prime number
What is the difference between volatile and const volatile?
Program to find the absolute value of given integer using Conditional Operators
what is computer
Can stdout be forced to print somewhere other than the screen?
What is data structure in c and its types?