What do you want to save?
Add Code snippet
New code examples
-
C 2022-02-16 02:40:16
passing a pointer to a function
// passing a pointer to function in C // It increaments the salary of an employee #include <stdio.h> void salaryhike(int *var, int b) { *var = *var+b; } int main() { int salary=0, bonus=0; printf("Enter the employee current salar... Add solution -
-
C 2022-02-14 22:50:07
sum of all column in matrix in c
/* C Program to find Sum of columns in a Matrix */ #include<stdio.h> int main() { int i, j, rows, columns, a[10][10], Sum; printf("Please Enter Number of rows and columns : "); scanf("%d %d", &i, &j... Add solution -
C 2022-02-14 16:40:12
c program to find average of 3 numbers
#include <stdio.h> int main(void) { // these numbers can be whatever you want int number = 1231231; int number2 = 1231232; int number3 = 1; // add up all the numbers you want to average, then divide it by the total amount of numbers. ... Add solution -
C++ 2022-02-13 23:15:04
code implementation of krushkals algorithm
a,b,u,v,n,ne=1; int min,mincost=0,cost[9][9],parent[9]; int find(int); int uni(int,int); void main() { #include ... Add solution -
C 2022-02-13 21:20:06
floyd warshall algorithm c program
#include<stdio.h>#include<conio.h>int min(int,int);void floyds(int p[10][10],int n) { int i,j,k; for (k=1;k<=n;k++) for (i=1;i<=n;i++) for (j=1;j<=n;j++) if(i==j) p[i][j]=0; else p[i][j]=min(p[i][j],p[i][k]+p[k][j])... Add solution -
C 2022-02-11 22:40:24
change text color c
#include <stdio.h> #include <windows.h> #define COLOR_DEFAULT 7 #define LIGHT_RED 12 void setColor(int color); int main() { setColor(LIGHT_RED); printf("This text is red"); setColor(colorDefault); } void setColor(int color... Add solution
Best helpers
Blank
+5
Grin
+5
Hwsolutions
+5
Charlemagne
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
37Bons
+5
Highlightman
+5
Paul Knight
+5
Karl
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Zkanoca
+5
Frank Jaeger
+5