We can draw a box in cprogram by using only one printf();&
without using graphic.h header file?

Answer Posted / parmjeet kumar

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

output:

______________
|______________|

Is This Answer Correct ?    16 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the preprocessor categories?

812


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1784


How do you view the path?

871


What is anagram in c?

693


Can you write the algorithm for Queue?

1739


Explain #pragma statements.

798


Which is better pointer or array?

791


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

960


Why is c fast?

786


What is the difference between printf and scanf )?

782


What is string function c?

768


How can a program be made to print the line number where an error occurs?

857


Write a program to print “hello world” without using semicolon?

868


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

900


What are unions in c?

759