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
What do you mean by c?
How is actual parameter different from the formal parameter?
What is the data segment that is followed by c?
Dont ansi function prototypes render lint obsolete?
What are the 4 types of unions?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is the use of structure padding in c?
What are c identifiers?
Explain what is the best way to comment out a section of code that contains comments?
What is variable initialization and why is it important?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
if p is a string contained in a string?
what is the different bitween abap and abap-hr?
Explain the term printf() and scanf() used in c language?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?