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
Describe the modifier in c?
When should the const modifier be used?
How can I dynamically allocate arrays?
How to declare a variable?
What is the heap in c?
What are predefined functions in c?
Describe the steps to insert data into a singly linked list.
Can the sizeof operator be used to tell the size of an array passed to a function?
What are the 32 keywords in c?
What is the explanation for cyclic nature of data types in c?
what is ur strangth & weekness
Can we declare variables anywhere in c?
Where is volatile variable stored?
What is the difference between a function and a method in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }