Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


print a "hello" word without using printf n puts in c language

Answers were Sorted based on User's Feedback



print a "hello" word without using printf n puts in c language..

Answer / prince

write(1, "Hello World", 11);

Is This Answer Correct ?    11 Yes 10 No

print a "hello" word without using printf n puts in c language..

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

print a "hello" word without using printf n puts in c language..

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

print a "hello" word without using printf n puts in c language..

Answer / sandeep kumar yadav

fprintf(stdout,"Hello");

Is This Answer Correct ?    11 Yes 15 No

print a "hello" word without using printf n puts in c language..

Answer / ricky

fputs("Hello",stdout)

Is This Answer Correct ?    4 Yes 10 No

print a "hello" word without using printf n puts in c language..

Answer / smith

#include<stdio.h>
#include<string.h>
void main()
{
printf("hello");
puts("hello");
}

Is This Answer Correct ?    3 Yes 23 No

Post New Answer

More C Interview Questions

Why do we use int main instead of void main in c?

0 Answers  


what are the files which are automatically opened when a c file is executed?

3 Answers  


What is the difference between new and malloc functions?

0 Answers   InterGraph,


hi, which software companys will take,if d candidate's % is jst 55%?

0 Answers  


What is substring in c?

0 Answers  


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

0 Answers   Wipro,


What is #include stdio h and #include conio h?

0 Answers  


Write a code to remove duplicates in a string.

0 Answers   Expedia,


Explain how to reverse singly link list.

0 Answers  


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

0 Answers  


array of pointer pointer to array pointer to pointer

1 Answers   MAHINDRA,


How are portions of a program disabled in demo versions?

0 Answers  


Categories