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 |
What does c mean in basketball?
Explain setjmp()?
Can we declare function inside main?
Write a program to find the given number is odd or even without using any loops(if,for,do,while)
What is const keyword in c?
Can stdout be forced to print somewhere other than the screen?
Explain what is the concatenation operator?
What is storage class?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Do you have any idea about the use of "auto" keyword?
What is the description for syntax errors?
from which concept of 'c', the static member function of 'c++' has came?