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 ur name 20,000 times without using inbuilt library
functions like printf,scanf,gets,puts,getchar or putchar

Answer Posted / nsaa

#include<stdio.h>
#include <unistd.h>
int main()
{
int fd,i;
char *name="myname\n";
for(i=0;i<20000;i++)
write(STDOUT_FILENO,name,sizeof(name));

}

Is This Answer Correct ?    10 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are volatile variables in c?

893


Is it valid to address one element beyond the end of an array?

1123


What are keywords in c with examples?

1042


What is a memory leak? How to avoid it?

1262


Do pointers store the address of value or the actual value of a variable?

1022


Write the Program to reverse a string using pointers.

971


how to write optimum code to divide a 50 digit number with a 25 digit number??

3208


What is array of structure in c programming?

1242


What is the use of header?

1054


How can I make it pause before closing the program output window?

991


What is %d used for?

992


Explain the red-black trees?

1055


Simplify the program segment if X = B then C ← true else C ← false

2964


Explain b+ tree?

1009


Can include files be nested? How many levels deep can include files be nested?

1091