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 are volatile variables in c?
Is it valid to address one element beyond the end of an array?
What are keywords in c with examples?
What is a memory leak? How to avoid it?
Do pointers store the address of value or the actual value of a variable?
Write the Program to reverse a string using pointers.
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is array of structure in c programming?
What is the use of header?
How can I make it pause before closing the program output window?
What is %d used for?
Explain the red-black trees?
Simplify the program segment if X = B then C ← true else C ← false
Explain b+ tree?
Can include files be nested? How many levels deep can include files be nested?