What do you want to save?
Add Code snippet
New code examples
-
-
C 2022-03-20 00:01:31
how to set a pointer to an offset in c
char *ptr0 = "Hello Goodbye"; char *ptr1 = ptr0+6; // offset 6 bytes from ptr0 printf("ptr0: %s\n", ptr0); // expected output ptr0: Hello Goodbye printf("ptr1: %s", ptr1); // expected output: ptr1: Goodbye Add solution -
Other 2022-03-18 00:40:02
how to assign struct address to the pointer
#include<stdio.h> struct dog { char name[10]; char breed[10]; int age; char color[10]; }; int main() { struct dog my_dog = {"tyke", "Bulldog", 5, "white"}; struct dog *ptr_dog; ptr_dog = &a... Add solution -
Python 2022-03-17 11:15:05
python code to c code converter
#include<iostream> // Defining MAX size to 10 #define MAX 10 using namespace std; typedef struct Edge { int source; int destination; int weight; }Edge; void bellman_ford_algo(int nodevertex,Edge edge[],int source_graph,int nodeedge) { int... Add solution -
Other 2022-03-17 10:10:41
queue with linked list in c
/* * Program : Queue using linked list * Language : C */ #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; }; struct node *front = NULL, *rear = NULL; void enqueue(int val) { struct node *newNo... Add solution -
Other 2022-03-17 04:25:04
Write a program to check whether a grammar is left recursive or not, if it is remove left recursion
1: #include<stdio.h> 2: #include<string.h> 3: #define SIZE 10 4: int main () { 5: char non_terminal; 6: char beta,alpha; 7: int num; 8: char production[10][SIZE]; 9: int index=3; /* starting of... Add solution
Best helpers
Loronzo
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
Sara J
+5
DJaye
+5
Umesh
+5
Mai0003c
+5
Zulu
+5
Rusnasonov
+5
Pc1oad1etter
+5
Lupa
+5
Vermilions
+5
Ian Goldby
+5
Amit Pareek
+5
Elenaher
+5
Poster
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5
Heewoo Kim
+5
JBeez
+5