What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-05 02:02:01
sorting in structure with c
#include <stdio.h> struct student { int rollno; char name[80]; int marks; }; void accept(struct student list[], int s); void display(struct student list[], int s); void bsortDesc(struct student list[], int s); int main() { struct ... Add solution -
C 2021-09-04 21:07:03
adding digits of a number in c
//program to find the sum of digits: #include<stdio.h> int main() { int num,sum=0,r,temp; printf("Enter the number:\n "); //taking input from the user scanf("%d",&num); temp=num; //assigning num to temp... Add solution -
Other 2021-09-04 19:58:03
variable parameters in c
#include <stdio.h> #include <stdarg.h> double average(int num,...) { va_list valist; double sum = 0.0; int i; /* initialize valist for num number of arguments */ va_start(valist, num); /* access all the arguments assigned... Add solution -
Java 2021-09-04 15:38:02
java printf tab
String prefix1 = "short text:"; String prefix2 = "looooooooooooooong text:"; String msg = "indented"; /* * The second string begins after 40 characters. The dash means that the * first string is left-justified. */ String form... Add solution -
C 2021-09-04 09:43:02
global and local variables in c
#include <stdio.h> //local parameters take precedance to global// /* global variable declaration */ int a = 20; int main () { /* local variable declaration in main function */ int a = 10; int b = 20; int c = 0; printf ("value... Add solution -
C 2021-09-04 04:51:03
implement the Beizer Curve code in c
#include<graphics.h> #include<math.h> #include<conio.h> #include<stdio.h> void main() { int x[4],y[4],i; double put_x,put_y,t; int gr=DETECT,gm; initgraph(&gr,&gm,"C:\\TURBOC3\\BGI"); printf("\n****** Bezier ... Add solution -
C 2021-09-04 03:17:02
c generate random number
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { int number, min, max; system("cls"); printf("What is the minimum number?\n"); scanf("%d", &min); printf("What is the... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5