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 |
#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }
What is the difference between c &c++?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
How is null defined in c?
What do you mean by c what are the main characteristics of c language?
what is the program to display your name in any color?
Why use int main instead of void main?
what is unsigened char and what is the difference from char
What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?
Is c procedural or functional?
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
what is difference between ANSI structure and C99 Structure?