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 |
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38
What are structure members?
64/square(4)
can we define a function in structure?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
How is a pointer variable declared?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Is c pass by value or reference?
what does data structure mean?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What does %2f mean in c?
What do you mean by keywords in c?