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

What does c mean in basketball?

0 Answers  


Explain setjmp()?

0 Answers  


Can we declare function inside main?

0 Answers  


Write a program to find the given number is odd or even without using any loops(if,for,do,while)

4 Answers   CNC, Gokul,


What is const keyword in c?

0 Answers  


Can stdout be forced to print somewhere other than the screen?

0 Answers  


Explain what is the concatenation operator?

0 Answers  


What is storage class?

0 Answers  


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

0 Answers  


Do you have any idea about the use of "auto" keyword?

0 Answers  


What is the description for syntax errors?

0 Answers  


from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


Categories