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

Answer Posted / chandan kumar r

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

output:
____________________
|____________________|

Is This Answer Correct ?    37 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between calloc () and malloc ()?

829


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

2254


What does c in a circle mean?

761


Is it possible to initialize a variable at the time it was declared?

995


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

846


What is return type in c?

880


Implement bit Array in C.

879


Write a Program to accept different goods with the number, price and date of purchase and display them

5860


What is include directive in c?

837


What are global variables?

860


What are the different types of C instructions?

965


Explain pointer. What are function pointers in C?

825


What are structure types in C?

860


What is pragma in c?

846


What is difference between union All statement and Union?

867