Page not found
Search results
C program to insert an element in an array
C program to insert an element in an array, for example, consider an array ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> int main ( ) { int array [ 100 ] , position , c , n , value ; printf ( "Enter number of elements in ...
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 ( ) { ... ] , b [ 100 ] , count = 0 , c , d ; printf ( "Enter number of elements in array \n " ...
devyog - 23/11/2019 - 11:40
C program to find nCr and nPr
C program to find nCr and nPr, remember, nCr = n!/(r!*(n-r)!) and nPr = n!/(n-r)!. C program to find nPr and nCr using a function #include <stdio.h> ... long factorial ( int n ) { int c ; long result = 1 ; for ( c = ...
devyog - 22/11/2019 - 19:42
textcolor in C
... textcolor is used to change the color of drawing text in C programs Turbo C compiler only . Declaration: void textcolor(int color); where color ...
devyog - 03/10/2018 - 17:42
Sum of n natural numbers in C
C program to find the sum of n natural numbers using the formula and a for ... Sum of first n natural numbers = n*(n+1)/2. C program to find sum of n natural numbers #include <stdio.h> ... } Output: Sum of n natural numbers in C using a for loop #include <stdio.h> int main ( ) ...
devyog - 04/11/2020 - 14:18
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
C++ program to add two complex numbers
C++ program to add two complex numbers. C++ programming code #include <iostream> using namespace ... ; int main ( ) { complex a, b, c ; cout << "Enter a and b where a + ib is the first ...
devyog - 13/07/2018 - 12:29
C++ new operator example
C++ new operator example: C++ code using "new" operator to allocate memory on heap dynamically. C++ programming code #include <iostream> using ...
devyog - 11/12/2019 - 11:11
C program to find maximum element in a matrix
C program to find the largest or the maximum element in a matrix. C program #include <stdio.h> int main ( ) { int m , n , c , d , matrix [ 100 ] [ 100 ] , maximum ; ...
devyog - 03/12/2019 - 22:15
C program to reverse words in a string
C program to reverse words in a string or sentence, for example, if the input string is "c++ programming language" then the output will be "++c gnimmargorp egaugnal" i.e. we will invert each word occurring in the input ...
devyog - 23/11/2019 - 11:40