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
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What does 3 periods mean in texting?
Why main is used in c?
How many parameters should a function have?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What are directives in c?
What are the 4 types of unions?
Are there namespaces in c?
Explain can static variables be declared in a header file?
What is include directive in c?
Calculate 1*2*3*____*n using recursive function??
Why functions are used in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
The __________ attribute is used to announce variables based on definitions of columns in a table?