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
What is table lookup in c?
4. main() { int c=- -2; printf("c=%d",c); }
How do we print only part of a string in c?
Was 2000 a leap year?
What are the disadvantages of a shell structure?
What is the purpose of the preprocessor directive error?
How main function is called in c?
What is character constants?
What is the size of empty structure in c?
What is c language in simple words?
What is sizeof in c?
Explain what header files do I need in order to define the standard library functions I use?
Do you know pointer in c?
please give me some tips for the placement in the TCS.
What are the advantages of c preprocessor?