Page not found
Search results
C program to generate random numbers
C program to generate pseudo-random numbers using rand and random function (Turbo ... word pseudo is used. Function rand() returns a pseudo-random number between 0 and RAND_MAX. RAND_MAX is a constant which is platform ... code using rand We use modulus operator in our program. If you evaluate a % b where a and b are integers then result will ...
devyog - 29/09/2018 - 15:28
C program to insert an element in an array
C program to insert an element in an array, for example, consider an array a[10] ... and a[0] = 1, a[1] = 2 and a[2] = 3 and you want to insert a number 45 at location 1 i.e. a[0] = 45, so we have to move elements one step ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> int main ( ) { ...
devyog - 23/11/2019 - 11:40
C program to delete duplicate elements from an array
C program to delete duplicate elements from an array. For example, if an array ... element we get the following array: 1, 6, 2, 9. C program #include <stdio.h> int main ( ) { ... = 0 , c , d ; printf ( "Enter number of elements in array \n " ) ; scanf ( "%d" , ...
devyog - 23/11/2019 - 11:40
C++ programs
... programs. C++ language programs C++ Hello World program C++ program to add two numbers C++ program to reverse a number C++ program to add two complex numbers C++ ...
devyog - 31/10/2019 - 22:25
Captcha program in C
C program to generate a captcha which is a random string generated using an algorithm. We will use the random function in the program. These are used in typing tutors and on websites to check whether a human is operating a website. C captcha program #include <stdlib.h> #include <dos.h> #include ...
devyog - 23/11/2019 - 12:15
C program to implement stack data structure
Stack program in C: C program to implement stack using array. C program #include <stdio.h> #include <stdlib.h> int ...
devyog - 23/11/2019 - 11:40
traffic light program in c, traffic light simulation
Traffic light Simulation: Traffic light program in C presents what happens in our daily life at traffic light signals. ... press a key to start the traffic light simulation. C program #include<graphics.h> #include<conio.h> ...
devyog - 23/11/2019 - 11:40
C++ program to add two numbers
C++ program to add two numbers. C++ programming code #include ... return 0 ; } C++ addition program using class #include <iostream> using namespace ...
devyog - 22/02/2018 - 13:39
Pattern programs in C
... ******* ********* We have shown five rows above; in the program, a user inputs the numbers of rows to print. Pattern program in C ... row , c , n ; printf ( "Enter the number of rows in pyramid of stars to print \n " ) ; scanf ...
devyog - 02/10/2020 - 00:19
C program to restrict mouse pointer in a circle
C program #include<graphics.h> #include<conio.h> ...
devyog - 01/12/2019 - 08:56