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

Answer Posted / chandan kumar r

yes the code is currect

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

output:

______________
|______________|

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain null pointer.

849


What is the difference between formatted&unformatted i/o functions?

864


What should malloc(0) do?

849


Can 'this' pointer by used in the constructor?

858


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4850


How can I get the current date or time of day in a c program?

1000


number of times a digit is present in a number

1819


Difference between MAC vs. IP Addressing

877


What are data structures in c and how to use them?

936


write a program to display all prime numbers

1728


What is "Hungarian Notation"?

870


What is a constant?

846


How can I open files mentioned on the command line, and parse option flags?

853


Where are the auto variables stored?

906


What are the advantages of c language?

877