Related
Mershad I'm maintaining part of the code my friend wrote, this is the definition of a variable called d: double (*d)[3];
I tried to initialize variables using the code below, but there are errors in every part (runtime or compile). I am confused whether the v
Mershad I'm maintaining part of the code my friend wrote, this is the definition of a variable called d: double (*d)[3];
I tried to initialize variables using the code below, but there are errors in every part (runtime or compile). I am confused whether the v
Toon I have these structures: typedef struct {
char *start;
char *loops;
char *tolerance;
double *numbers;
} configuration;
typedef struct {
bool help;
bool debug;
const char *configFile;
const char *inputFile;
const char *
Toon I have these structures: typedef struct {
char *start;
char *loops;
char *tolerance;
double *numbers;
} configuration;
typedef struct {
bool help;
bool debug;
const char *configFile;
const char *inputFile;
const char *
Toon I have these structures: typedef struct {
char *start;
char *loops;
char *tolerance;
double *numbers;
} configuration;
typedef struct {
bool help;
bool debug;
const char *configFile;
const char *inputFile;
const char *
Toon I have these structures: typedef struct {
char *start;
char *loops;
char *tolerance;
double *numbers;
} configuration;
typedef struct {
bool help;
bool debug;
const char *configFile;
const char *inputFile;
const char *
Toon I have these structures: typedef struct {
char *start;
char *loops;
char *tolerance;
double *numbers;
} configuration;
typedef struct {
bool help;
bool debug;
const char *configFile;
const char *inputFile;
const char *
username I know I should know this, but it's too late and my brain can't piece it all together. A question can be straightforward: I have a structure item. I want to create a pointer to an array of pointers of that item type. E.g. struct item {
int data;
Simon I have to store pointers to data structures. Therefore, I need an array of pointers. I created a simple example, but received segmentation fault. why can't i do buf->data[i] = pkt?? #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <str
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
Simon I have to store pointers to data structures. Therefore, I need an array of pointers. I created a simple example, but received segmentation fault. why can't i do buf->data[i] = pkt?? #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <str
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
grassland I have a set of pointers to image block objects. I have a derived class member function that returns a pointer to one of these image blocks, it's a virtual function so I can't change the return type without breaking everything. Here is what I have so
grassland I have a set of pointers to image block objects. I have a derived class member function that returns a pointer to one of these image blocks, it's a virtual function so I can't change the return type without breaking everything. Here is what I have so
username I know I should know this, but it's too late and my brain can't piece it all together. A question can be straightforward: I have a structure item. I want to create a pointer to an array of pointers of that item type. E.g. struct item {
int data;
Tomasz Kasperczyk I don't know how to access the contents of an array of pointers through a pointer. Here is an example: Type
PInteger = ^Integer;
IntegerArrayP = array of PInteger;
PIntegerArrayP = ^IntegerArray;
var
variable: Integer;
pa
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
Simon I have to store pointers to data structures. Therefore, I need an array of pointers. I created a simple example, but received segmentation fault. why can't i do buf->data[i] = pkt?? #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <str
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
bitcoin Suppose I have a function int foo(void)
{
printf("Hello world");
}
I want to use a pointer to a function to point to foo(). typedef int (*f_ptr)(void); Which case would I use for this purpose? (A) f_ptr my_ptr = foo;
my_ptr();
(B) f_ptr * my_
grassland I have a set of pointers to image block objects. I have a derived class member function that returns a pointer to one of these image blocks, it's a virtual function so I can't change the return type without breaking everything. Here is what I have so
Tomasz Kasperczyk I don't know how to access the contents of an array of pointers through a pointer. Here is an example: Type
PInteger = ^Integer;
IntegerArrayP = array of PInteger;
PIntegerArrayP = ^IntegerArray;
var
variable: Integer;
pa
Fifth, the United Kingdom: I'm currently learning C++ using Koenig's Accelerated C++ and I'm having some trouble with pointers to initial arrays of pointers. The book says the following code
int main(int argc, char** argv)
{
// if there are arguments, wri
Fifth, the United Kingdom: I'm currently learning C++ using Koenig's Accelerated C++ and I'm having some trouble with pointers to initial arrays of pointers. The book says the following code
int main(int argc, char** argv)
{
// if there are arguments, wri
Michael I'm learning C and have some difficulty understanding pointers and arrays. In the tutorial I read, I have the following line: char* arrP1[] = { "father","mother",NULL };
My question is what is arrP1? It is an array of pointers to static strings: Or
Michael I'm learning C and have some difficulty understanding pointers and arrays. In the tutorial I read, I have the following line: char* arrP1[] = { "father","mother",NULL };
My question is what is arrP1? It is an array of pointers to static strings: Or
Fifth, the United Kingdom: I'm currently learning C++ using Koenig's Accelerated C++ and I'm having some trouble with pointers to initial arrays of pointers. The book says the following code
int main(int argc, char** argv)
{
// if there are arguments, wri
Michael I'm learning C and have some difficulty understanding pointers and arrays. In the tutorial I read, I have the following line: char* arrP1[] = { "father","mother",NULL };
My question is what is arrP1? It is an array of pointers to static strings: Or