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 (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
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 :: Durga123
I also faced this Question!!     Rank Answer Posted By  
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
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 ?    60 Yes 17 No
Balakrushna (bk)
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 2
ya wit out using printf we can print.... using putchar,puts
functions etc.........
 
Is This Answer Correct ?    36 Yes 12 No
Vignesh1988i
 
 
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
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
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 4
it is possible . with using if condition and library
function
 
Is This Answer Correct ?    13 Yes 9 No
Murali
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 5
yes u can use PRINTK , which doesn't need c library also.
But this answer is specific to linux.
 
Is This Answer Correct ?    1 Yes 8 No
Chandrasekhar Kar
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 6
my qyestion is without using library function how can print? 
Is This Answer Correct ?    5 Yes 6 No
Murali
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 7
/*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 ?    18 Yes 8 No
Bhupendra Dhire
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 8
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
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 9
It's impossible without using any library function 
Is This Answer Correct ?    3 Yes 4 No
Gokul
 
  Re: in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
Answer
# 10
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm, "");
outtextxy(75,170,"Welcome");
getch();
}
 
Is This Answer Correct ?    2 Yes 0 No
Mahendran
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x); HCL 8
How pointer is benefit for design a data structure algorithm?   2
Why Modern OS are interrupt driven?Give an example   2
what is void pointer?   2
write a program to print the all 4digits numbers & whose squares must me even numbers? Virtusa 2
C,c++, Java is all are structural oriented or procedure oriented language..?   6
what is the code for getting the output as * ** *** Caritor 5
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?   4
#define d 10+10 main() { printf("%d",d*d); }   5
main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain   1
plz answer.. a program that takes a string e.g. "345" and returns integer 345   4
Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??   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