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

A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1175


What does 3 periods mean in texting?

1065


Why main is used in c?

1078


How many parameters should a function have?

1195


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2116


What are directives in c?

974


What are the 4 types of unions?

1046


Are there namespaces in c?

1133


Explain can static variables be declared in a header file?

1155


What is include directive in c?

1159


Calculate 1*2*3*____*n using recursive function??

2042


Why functions are used in c?

1141


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3250


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1146


The __________ attribute is used to announce variables based on definitions of columns in a table?

1214