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 (2253)
 C++ interview questions  C++ Interview Questions (1111)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (646)
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 ?    61 Yes 18 No
Balakrushna (bk)
 
Answer
# 2
ya wit out using printf we can print.... using putchar,puts
functions etc.........
 
Is This Answer Correct ?    36 Yes 12 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 ?    19 Yes 9 No
Bhupendra Dhire
 
Answer
# 5
it is possible . with using if condition and library
function
 
Is This Answer Correct ?    14 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 ?    2 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
 
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?   2
What is the output from this program? #include <stdio.h> void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2 + the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d\n", first, second); return 0; }   3
is assignment operator is arithmatic or not Infosys 3
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }   4
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); } Wipro 1
write a program to swap two variables a=5 , b= 10 without using third variable   5
Taking an example,differentiate b/w loader and linker ?   1
explain memory layout of a C program   2
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.   2
2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x); HCL 8
write a c program for greatest of three numbers without using if statment IBM 4
who developed c and why he developed c?   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