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 (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
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 ?    64 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
 
IS STRUCTURES CAN BE USED WITHIN AN ARRAY? Caritor 7
Explain Linker and Loader   5
how to set Nth bit of variable by using MACRO   3
why arithmetic operation canít be performed on a void pointer?   1
Why cann't whole array can be passed to function as value.   1
How can I find out how much memory is available? Persistent 1
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ? IBM 11
write a program to print sum of each row of a 2D array.   3
what is the function of .h in #include<stdio.h> in c ? IBM 23
Explain demand paging.   1
Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);   1
main() { printf("hello%d",print("QUARK test?")); }   5
 
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