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



print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,get..

Answer / gaurav

char far* src = (char far*) 0xB8000000L; *src = 'M'; src
+= 2; *src = 'D';

Is This Answer Correct ?    3 Yes 1 No

print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,get..

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

print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,get..

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

print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,get..

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

Post New Answer

More C Interview Questions

which is the best antivirus and how to update it

7 Answers   Infosys,


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?

0 Answers   ADP,


What is the difference between volatile and const volatile?

0 Answers  


#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?

1 Answers   Wipro,


how to do in place reversal of a linked list(singly or doubly)?

3 Answers  


What is c mainly used for?

0 Answers  


what is different between auto and local static? why should we use local static?

0 Answers  


What is the function of volatile in c language?

0 Answers  


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

1 Answers  


Meaning of () in c

1 Answers  


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

2 Answers   Wipro,


Categories