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 is table lookup in c?

624


4. main() { int c=- -2; printf("c=%d",c); }

1364


How do we print only part of a string in c?

580


Was 2000 a leap year?

626


What are the disadvantages of a shell structure?

686






What is the purpose of the preprocessor directive error?

677


How main function is called in c?

625


What is character constants?

710


What is the size of empty structure in c?

589


What is c language in simple words?

588


What is sizeof in c?

570


Explain what header files do I need in order to define the standard library functions I use?

645


Do you know pointer in c?

587


please give me some tips for the placement in the TCS.

1629


What are the advantages of c preprocessor?

711