ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
We can draw a box in cprogram by using only one printf();& 
without using graphic.h header file?
 Question Submitted By :: Pradeep
I also faced this Question!!     Rank Answer Posted By  
 
  Re: We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
Answer
# 1
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\n______________\n|______________|");
getch();
}

output:

 ______________
|______________|
 
Is This Answer Correct ?    5 Yes 1 No
Parmjeet Kumar
 
  Re: We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
Answer
# 2
yes the code is currect

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("\n______________\n|______________|");
getch();
}

output:

 ______________
|______________|
 
Is This Answer Correct ?    1 Yes 0 No
Mohan Reddy
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is dangling pointer? LG-Soft1
Write a program to find the smallest and largest element in a given array in c language  1
What compilation do? Geometric-Software5
How can I find out how much memory is available? Persistent1
how to find out the inorder successor of a node in a tree?? TCS2
What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement. TCS1
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision Qualcomm4
explain memory layout of a C program  1
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?  2
Write a program to compare two strings without using the strcmp() function Accenture6
write a program to display the array elements in reverse order in c language  2
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; } Honeywell2
Who had beaten up hooligan "CHAKULI" in his early college days?  1
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..} TCS2
why r u join this company? give solid resons. Infosys3
What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation IBM9
1,1,5,17,61,217,?,?.  3
Function to find the given number is a power of 2 or not? Motorola9
what is the differance between pass by reference and pass by value. Infosys4
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program Mascot4
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com