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

How to initialize char array in struct

admin December 17, 2012

how to initialize a char array in structure in C# i am doing this struct cell { public char[] domain =new char[16]; public int[] Peers; public int NumberOfPeers; public char …

.netarrayscinitializationstruct
Arrays

Creating array of structs in C++

admin October 24, 2012

I’m having a newbie problem in C++. I have a struct Edge defined as following: struct Edge { int position[4]; int average; }; Now I need to create a lot of these structs and I created a …

arrayscstruct
Arrays

Expression must have (Pointer-to-) function type while using structs

admin September 1, 2012

So basically what I’m doing is passing an array of structs from one function to another function. It works for the show functions, but not for the max functions :/ What exactly am i doing wrong? void …

arrayscfunctionpointersstruct
Arrays

Array of structs, unable to check if entry is NULL

admin September 1, 2012

Im toying with creating my own hash table data structure, but I have hit an unexpected problem, which I can’t solve and haven’t found a satisfying solution for it yet. See, I have this linked list …

arrayscpointersstruct
Arrays

deserialize char Array to int and int[] and struct?

admin September 1, 2012

Can I populate a struct by treating it as an array of unsigned char values? I receive character data over the RS232 UART from a Microcontroller. Using C, how can I deserialize the char Array in my …

arrayscdeserializationembeddedstruct
Arrays

C end structure list

admin May 31, 2012

I want to make a list of structures in C. In my program, I read lines from a file and store information in structures (one structure per line). So my code is something like this: struct myStruct *…

arrayscnullpointersstruct
Arrays

Using JNA to pass a struct containing an array of doubles from Java to C

admin May 30, 2012

I have a C function that expects a struct which contains an array of doubles: typedef struct ArrayHolder { int numVals; double* vals; } ArrayHolder; void putArrayHolder(ArrayHolder* holder); …

arraysjnaprimitivestruct
Linux

Using fread to read the contents of a file into a structure

admin June 1, 2011

In the “Advanced Programming in the Unix Environment” book there’s a part (ch 8.14, page 251) in which the author shows us the definition of the “acct” struct (used to store accounting records info). …

clinuxstruct
Arrays

Question regarding usage of array as a pointer in C

admin February 17, 2011

For eg. I have an array of structs ‘a’ as below: struct mystruct{ int b int num; }; struct bigger_struct { struct my_struct a[10]; } struct bigger_struct *some_var; i know that the name …

arrayscpointersstruct
Arrays

C: copying struct/array elements

admin October 3, 2009

I have a file in a known format and I want to convert it to a new format, eg.: struct foo { char bar[256]; }; struct old_format { char name[128]; struct foo …

arraysccopystruct

Posts navigation

Previous 1 … 7 8
Privacy Policy