static « size « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » size » static 

1. How to change a 2d array from dynamic to static of a specific size?    stackoverflow.com

I currently have the dynamic array:

char *myData[500][10]; //myData is the name of an array of[500][10] pointers to type char.
I would like to create a static 2d array, 500 rows X 10 ...

2. Casting a 'BigStruct' to a 'SmallStruct' in C (similar structs with static arrays of different sizes)    stackoverflow.com

Supposed that for some reason you are only allowed to use static memory in a C program. I have a basic structure that I am using in several places defined as below:

#define ...

3. static char arrays size    bytes.com

Hello , I always had the feeling that is better to have char arrays with the size equal to a power of two. For example: char a_str[128]; // feels ok char b_str[100]; //feels not ok. Is that true , and if is true then what is the reason behind this? ( I suppose that is something related to memory alignment but ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.