Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 Answers  


What does the error message "DGROUP exceeds 64K" mean?

0 Answers   Celstream,


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

0 Answers  


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

0 Answers   Mind Tree,


How can my program discover the complete pathname to the executable from which it was invoked?

0 Answers  


Is a house a shell structure?

0 Answers  


How to reverse a linked list

1 Answers   Aricent, Fidelity, IBM, TCS,


print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,


What are identifiers and keywords in c?

0 Answers  


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1 Answers   IBM,


What is && in c programming?

0 Answers  


Categories