CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
How to type a string without using printf function?


Category C Interview Questions
Rating (4.0) By 1 users
Added on 7/17/2006
Views 1396
Rate it!
Answers:

//printing a string without printf#includeint main(){ char *str="shobhit"; while((*str)!=NULL) { putchar(*str); str++; } return 0;}



//printing a string without printf
#include<stdio.h>
void main()
{ char str[10]="lincoln";
puts(str); }



 Posted by: raghu    

Contact raghu  Contact raghu


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
Whats is structure padding?Say a given structure
Struct{
int a;
char c;
float d;
}
the size of structure is 7 here.
But structure padding is done what will be the size of the struct?Will it change and how?How to avoid this?is it necessary?

View Answer
When is a switch statement better than multiple if statements?
View Answer
What is the difference between goto and longjmp() and setjmp()?
View Answer
What is an lvalue?
View Answer
Array is an lvalue or not?
View Answer
What is page thrashing?
View Answer
What is a const pointer?
View Answer
When should the register modifier be used? Does it really help?
View Answer
when should the volatile modifier be used?
View Answer
Can a variable be both const and volatile?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/5940/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.66