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

What are preprocessor directives in c?

853


Is main a keyword in c?

847


Explain modulus operator.

827


What is function and its example?

912


What is calloc in c?

896


What is string function in c?

757


Is fortran still used today?

813


Explain what is wrong in this statement?

855


What is the difference between constant pointer and constant variable?

982


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1683


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2171


What is the difference between mpi and openmp?

1014


What is function what are the types of function?

758


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6300


What is string concatenation in c?

784