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


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
How to write a C program for displaying a sentence without output command?

Posted by: G.Ramya on 11/3/2007

Contact G.Ramya  Contact G.Ramya
Category C Interview Questions
Rating (2.8) By 6 users
Added on 11/3/2007
Views 4988
Rate it!
Answers:

usse return type in the function and call it in the main program.
we can see thee output without using any output command.



 Posted by: Pratyush Kumar    

Contact Pratyush Kumar  Contact Pratyush Kumar

use printf function



 Posted by: leena    

Contact leena  Contact leena

use putchar()



 Posted by: Swati    

Contact Swati  Contact Swati

we can do it in many ways
1)you will get only this sentence
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=10,b;
b=a/0;
}

output:some text

2)in this you can get any output
void display()
{
printf("kishore reddy");
}
save above program in file and save it as filename.h

#include<stdio.h>
#include "fiename.h"
void main()
{
display();
}






 Posted by: kishore reddy    

Contact kishore reddy  Contact kishore reddy

It works for DOS operating system.

void main()
{
char sentence[]="india is great" ;
char far *ptr = (char far *)0xb8000000 ;
int i,j;
clrscr() ;
for(i=0,j=0 ; sentence[j]!= '



 Posted by: sathish kumar .s.s.    

Contact sathish kumar .s.s.  Contact sathish kumar .s.s.


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
What is difference between the test effort and the test procedure?
View Answer
What are the disadvantages of using Pointers.
View Answer
How can I convert a number to a string?
View Answer
How to write a program for pascal triangle?
View Answer
write a program to remove comment lines and blank lines from an error free c program.
View Answer
What use of structure and union?
View Answer
Where does global, static, local, register variables, free memory and C Program instructions get stored?
View Answer
1)What is static identifier?


2)Where are the auto variables stored?
View Answer
i need a code in c for strings and general, which are important and frequently asked in programming test especially for SUBEX.
View Answer
How to print value without using any output statements?
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/12413/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.72