print ur name 20,000 times without using inbuilt library
functions like printf,scanf,gets,puts,getchar or putchar
Answers were Sorted based on User's Feedback
Answer / gaurav
char far* src = (char far*) 0xB8000000L; *src = 'M'; src
+= 2; *src = 'D';
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
Answer / shrikantauti
in the question itself there is clearly written print which means we must use either printf or puts. else otherwise it is not possible.
Is This Answer Correct ? | 1 Yes | 6 No |
Answer / dasari chaithanya
#include<stdio.h>
#include<conio.h>
void main()
{
char ch[20];
for(ch=0;ch<=20000;ch++)
if( printf("chaithanya"));
else if("data is wrong");
}
Is This Answer Correct ? | 0 Yes | 42 No |
which is the best antivirus and how to update it
Write a program to print all the prime numbers with in the given range
8 Answers ABC, College School Exams Tests, TCS,
How do you define CONSTANT in C?
What is the difference between volatile and const volatile?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?
how to do in place reversal of a linked list(singly or doubly)?
What is c mainly used for?
what is different between auto and local static? why should we use local static?
What is the function of volatile in c language?
write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer
Meaning of () in c
what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits