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

Describe the modifier in c?

852


When should the const modifier be used?

849


How can I dynamically allocate arrays?

770


How to declare a variable?

757


What is the heap in c?

834


What are predefined functions in c?

759


Describe the steps to insert data into a singly linked list.

816


Can the sizeof operator be used to tell the size of an array passed to a function?

829


What are the 32 keywords in c?

840


What is the explanation for cyclic nature of data types in c?

860


what is ur strangth & weekness

2026


Can we declare variables anywhere in c?

757


Where is volatile variable stored?

829


What is the difference between a function and a method in c?

784


#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); }

960