Thursday, May 2, 2013

c programs on Functions and theory questions on c language


a)      What is the use of following functions?
a.       gotoxy
b.      kbhit()
c.       delay()
d.      sleep()
b)      Program to display ascii values.
c)       What is enum? How to declare multiple constants using enum.
d)      What is the use const object?



1.       Write a program to develop writechar() function to display character in a specified position. Writechar(‘a’,45,16);
2.       Write a program to develop writestring() function to display string in a specified position. Writestring(“kiran”,10,10);
3.       Write a program to develop hline() to draw a horizontal line. Hline(5, 10, 80 );
4.       Write a program to develop vline() to draw a vertical line. Vline (5, 5, 25 );
5.       Write a program to develop drawbox() to draw a box, drawbox(5,5,70,24);
6.       Write a program to display drawborders() to display borders. Drawborders(5,5,70,24)

No comments:

Post a Comment