Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: struct

Arrays

Hash table in C, array of pointers

admin March 21, 2021

I am trying to implement a hash table in C. We hash the value and we do modulo the size of the table to obtain the index i. Each entry of the table is a linked list. We then put the value in the i …

arrayschashtablepointersstruct
Arrays

Need help to populate a structs array in perl

admin March 12, 2021

I need some help to populate an array made of structs in perl. The data for the array comesfrom a .SH file with the following format : 108,Country,Location,ap17,ip_149,ssh,model,12/8/2020 The code I …

arraysperlstruct
Linux

Allocating memory for array of struct in linux kernel and got strange output od structs ids

admin March 6, 2021

I wrote a program in linux kernel, which should allocate memory for 5 simple structures each of with unique id, so i used static int in a constructor and increment it and in the end i just print …

ckernellinuxstruct
Arrays

Why this c-program gives error when I initialize structure member outside the main function?

admin March 6, 2021

Why this c-program gives error when I initialize structure members (user.username and user.pin) outside the main function?, But everything becomes fine when I initialize it inside the main function. …

arrayscc-stringsinitializationstruct
Arrays

Accessing Element in Array Inside Struct Dynamically Allocated

admin November 7, 2020

So I have an array of structs with every struct containing a dynamic array of strings. typedef struct _test { int total; char *myarray[]; } Test; This how I allocated enough memory Test *…

arrayscdynamic-memory-allocationstruct
Arrays

How can I create a string array of values pulled from a struct in MATLAB?

admin November 5, 2020

I have a MATLAB struct that I would like to pull a single text field from every entry and put these entries into a string array. An example struct can be created with the following: allFiles = dir(…

arraysmatlabstruct
Arrays

Successful dereference seems to cause a latent segfault

admin September 2, 2020

As mentioned in the title, I’m successfully dereferencing the data coming to and from the modMYSTRUCT and showMeThis functions. The proper output before “Fourth check” displays but a …

arrayscdereferencesegmentation-faultstruct
Arrays

C++ – Changing single lowercase charachter in a word to uppercase and vice versa using struct data type

admin May 12, 2020

As you can see from the title I want to change lowercase charachter in word to uppercase and vice versa. Also I need to use struct object (in my case name). I have a problem when I change charachter …

arraysclowercasestruct
Arrays

Cannot print out the values of a dynamic 2D array of structs

admin March 13, 2020

This program is supposed to ask the user for two values, then generate and print a table using the two values as the number of rows and columns respectively. Each cell of the table has two values, …

arrayscmallocprintfstruct
Arrays

Wrong assignment in string struct variable in C

admin January 22, 2020

Please help me with this code. Why same name is assigned to all the different structs? I’m noob to pointers and arrays in C. struct student { char *name; int reg_no; }; typedef struct student …

arrayscc-stringspointersstruct

Posts navigation

1 2 … 8 Next
Privacy Policy