What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-17 02:41:03
How to pass a struct value to a pthread in c?
struct my_Struct{ int val1, val2; }; void* my_Func(void *received_struct){ //Creating a pointer to point to the received struct struct my_Struct *struct_ptr = (struct my_Struct*) received_struct; printf("Value 1: %d | Value 2: % \n", st... Add solution -
C++ 2021-09-17 02:31:04
test when c++ destructor is called
// order_of_destruction.cpp #include <cstdio> struct A1 { virtual ~A1() { printf("A1 dtor\n"); } }; struct A2 : A1 { virtual ~A2() { printf("A2 dtor\n"); } }; struct A3 : A2 { virtual ~A3() { printf("A3 dtor\n"); ... Add solution -
C 2021-09-16 15:31:03
multiplication table using c
#include <stdio.h> int main(){ //declaring variables int n,i,a,start,end; //taking and printing the instructions printf("Enter first number from where you want to start multiplication : \n"); scanf("%d",&sta... Add solution -
C 2021-09-16 12:53:02
find sum of individual column of a 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 2021-09-15 22:59:02
Write a C program to search an existing element in singly linked list
#include <stdio.h> #include <stdlib.h> struct node { int num; struct node *nextptr; } stnode, *ennode; int FindElement(int); void main() { int n,i,FindElem,FindPlc; stnode.nextptr=NULL; ennode=&stnode; printf("\n\n Linked... Add solution -
Other 2021-09-15 15:04:02
Lcm of 2 numbers in c
// for finding lcm of 2 number . Can use this concept to find lcm of an array of number #include <stdio.h> int main() { int n1, n2, max; printf("Enter two positive integers: "); scanf("%d %d", &n1, &n2); ... Add solution
Best helpers
Pharma
+5
JohnDoe
+5
A. Pettit
+5
Akiman Barwa
+5
PixelZerg
+5
Parallax
+5
Seige
+5
Meaning
+5
RichVel
+5
Jeff Ava
+5
Moo-Juice
+5
Aryan Dey
+5
Mahnaz
+5
Ben Kennett
+5
Silver Rain
+5
Tralston
+5
Rahul Ramesh
+5
Jcjr
+5
Thruston
+5
Alec Cook
+5
Machisuji
+5
Catimann
+5
PeterBocan
+5
Andrew Lowe
+5