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

Answer Posted / veeramalliga

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

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c preprocessors?

676


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

576


What are the types of pointers in c?

528


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

656


What type is sizeof?

583






What is the difference between malloc calloc and realloc in c?

645


What is a volatile keyword in c?

636


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1582


How do you define a string?

651


What are qualifiers in c?

572


What is difference between function overloading and operator overloading?

655


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

680


Why do we need volatile in c?

742


What is extern variable in c with example?

538


Here is a good puzzle: how do you write a program which produces its own source code as output?

595