Page not found
Search results
setlinestyle in C
... DASHED_LINE , USERBIT_LINE } ; C program #include <graphics.h> int main ( ) { int gd = DETECT , gm , c , x = 100 , y = 50 ; initgraph ( & gd ...
Yogesh Suneja - 23/11/2019 - 11:40
Getarcoords function in C
... type arccoordstype is passed to function getarccoords. C program of getarccoords #include<graphics.h> #include<conio.h> ... ] ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; arc ( 250 , 200 , 0 ...
Yogesh Suneja - 12/10/2020 - 22:47
assert in C
... assert(int expression); The expression can be any valid C language expression many a time it is a condition. In the program, we ... the condition that does not hold (see image below). C assert program #include <stdio.h> #include ...
Yogesh Suneja - 02/10/2020 - 16:14
Leap year program in C
Leap year program in C to check if a year is a leap year or not, a leap year is one that has 366 ... || []).push({}); Leap year C program #include <stdio.h> int main ( ) { ...
Yogesh Suneja - 02/10/2020 - 00:25
Draw shapes using C graphics
This C graphics program draws basic shapes such as circle, line, rectangle, ellipse and display text on screen using C graphics. This can be a first graphics program for a beginner. C program #include<graphics.h> #include<conio.h> main ( ...
Yogesh Suneja - 23/11/2019 - 11:40
sprintf in c
Sprintf in C : It's just like printf but output is sent to a string, rather than standard ... to string. Previous content of string are overwritten. C program #include<stdio.h> int main ( ) { ... 1 ; float b = 1.23 ; char c = 'u' , string [ 100 ] = "My initial character ...
Yogesh Suneja - 23/11/2019 - 11:40
Print numbers without using loops
C program to print first n natural numbers without using any loop (do-while, ... i.e., without creating any function other than main. C program using recursion #include <stdio.h> void print ( ... without loop program. Output of program: C program using goto #include <stdio.h> int main ( ) ...
Yogesh Suneja - 09/10/2020 - 22:48
colors in C graphics
Following colors are available for use in C graphics programming. Colors table Color Value ... name as it will improve readability of program. C programming: graphics.h ...
Yogesh Suneja - 09/06/2018 - 20:50
Captcha program in C
C program to generate a captcha which is a random string generated using an ... to check whether a human is operating a website. C captcha program #include <stdlib.h> #include <dos.h> ... ] ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; x = getmaxx ( ) / 2 ; ...
Yogesh Suneja - 23/11/2019 - 12:15
C program to move a car
Program in C using graphics to move a car. A car is made using two rectangles and two ... = window.adsbygoogle || []).push({}); C program #include <graphics.h> #include <dos.h> #include ... , gm ; initgraph ( & gd ,& gm , "C: \\ TC \\ BGI" ) ; settextstyle ( DEFAULT_FONT , ...
Yogesh Suneja - 23/11/2019 - 11:40