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 |
How to Throw some light on the splay trees?
can u suggest me am in a confusion to choose whether to go to c programming or a software testing . am a graduate in B.sc(electronics).
How do shell structures work?
Why c is procedure oriented?
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
Is there a way to switch on strings?
What are the keywords in c?
Why is it that not all header files are declared in every C program?
What is C++
What is structure packing ?
please give me some tips for the selection in TCS.
Why c is faster than c++?