Monday, April 26, 2021

, , , , ,

strncpy() Function in c programming with example

 strncpy() Function in c programming is used to copies the specified number of characters from source string (src) to destination string and this is an only difference between strcpy() function and strncpy() Function. Syntax for strncpy() in c char *strncpy(char *str1, const char *str2, size_t n) In the given syntax str1 is Destination string and str2 – Source string.strncpy() in c return...

Friday, April 23, 2021

, , , ,

ellipse function in C programming

 ellipse function in c Learn to Declarations ellipse function in computer graphic void ellipse(int x, int y, int stangle, int endangle, int xradius, int yradius)  This function is used to draw an ellipse where (x,y) are coordinates of center of that draw ellipse, stangle is the starting angle, end angle is the ending angle,  int xradius, int yradius are parameters specifies the...

Wednesday, April 14, 2021

, , , ,

line function in computer graphics

line function in c programming :-Well line function in c computer graphics is used as it name says to draw a line from a point(x1,y1) to point(x2,y2) where (x2,y2) are end points to draw a line.Here you can also check the c program to draw a line in computer graphics. (adsbygoogle = window.adsbygoogle || []).push({});  C example program #include <graphics.h>#include <conio.h>main(){ ...

Monday, April 5, 2021

, , , , ,

Arc function in C with graphics in c

 Declaration: void arc(int x, int y, int stangle, int endangle, int radius);"arc" operate is employed to draw associate arc with center (x, y) for example draw a corcle in c programming and stangle specifies beginning angle for arc, end angle for arc can be define by endangle and the and last parameter specifies the radius of the arc. arc operate may also be accustomed draw a circle except...