ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
Question
in C-programming language without using printf statement 
can we get output r not ? if yes how and if no also how ? 
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Yes.
We can get output using puts() for printing a string or
putchar() for printing single character.
So printf() is not necessary here for printing.
 
Is This Answer Correct ?    65 Yes 18 No
Balakrushna (bk)
 
Answer
# 2
ya wit out using printf we can print.... using putchar,puts
functions etc.........
 
Is This Answer Correct ?    38 Yes 13 No
Vignesh1988i
 
 
 
Answer
# 3
well, dats fine !!
But can ne1 tell me, is it possible to print sumthing widout
using any LIBRARY FUNCTION ??
 
Is This Answer Correct ?    25 Yes 9 No
Pratap
 
Answer
# 4
/*this program is without printf() and without (;) using far pointer and functions */

int display(char *ch)
{
char far *p;
int i;
static int c=0;
p=(char far *)0xb8000000l;
for(i=0;ch[i]!='\0';i++,c=c+2)
p[c]=ch[i];
}
void main()
{
if(display("BHUPENDRA DHIRE ")){}
}
 
Is This Answer Correct ?    20 Yes 9 No
Bhupendra Dhire
 
Answer
# 5
it is possible . with using if condition and library
function
 
Is This Answer Correct ?    15 Yes 9 No
Murali
 
Answer
# 6
don't say puts&putchar.we have to think ina manner that how
to write code for printf function.ofcourse those two are
also correct.
 
Is This Answer Correct ?    4 Yes 0 No
Bandla.madhu
 
Answer
# 7
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm, "");
outtextxy(75,170,"Welcome");
getch();
}
 
Is This Answer Correct ?    3 Yes 1 No
Mahendran
 
Answer
# 8
it's possible to print something using if and without semicolon(;)

#include<stdio.h>
#include<conio.h>
int main()
{
if(printf("HELLO USER"))
{
}
getch();
return 0;
}
 
Is This Answer Correct ?    1 Yes 0 No
Shreya Jha
 
Answer
# 9
my qyestion is without using library function how can print? 
Is This Answer Correct ?    5 Yes 6 No
Murali
 
Answer
# 10
It's impossible without using any library function 
Is This Answer Correct ?    3 Yes 4 No
Gokul
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is use#in c   3
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}   3
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf( %d\n,sum); } what is the difference between a=10 and a=010?? Oracle 3
what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); } IBM 6
how to find turn around time in operating system?   3
what is ANSI and ISO HCL 7
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986   1
Give the Output : * * * * * * * * * *   2
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings   6
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?   10
What is the Lvalue and Rvalue?   2
how to add two numbers without using arithmetic operators?   4
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com