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 header files in c?
1. main() { printf("%d",printf("HelloSoft")); } Output?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
a C prog to swap 2 no.s without using variables just an array?
Compare and contrast compilers from interpreters.
Identify the operators that is not used with pointer a. && b. # c. * d. >>
What are directives in c?
what is the role you expect in software industry?
With the help of using classes, write a program to add two numbers.
What is getch () for?
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????
Is there any demerits of using pointer?