pointers
Why does this code segfault on 64-bit architecture but work fine on 32-bit?
I came across the following C puzzle: Q: Why does the fo开发者_JAVA技巧llowing program segfault on IA-64, but work fine on IA-32?[详细]
2023-04-08 10:48 分类:问答When to return a pointer, pass a pointer as a parameter or not use them at all?
I am currently experimenting with C, and I am having a really hard time understanding how to use pointers in functions. I understand what is happening when I initialize a pointer then dereferencing it[详细]
2023-04-08 10:19 分类:问答General knowledge question regarding classes and class instances in C++
I\'ll start with my problem: My problem is that I\'m getting a segmentation fault when I try to access a public function within an instance within a class.[详细]
2023-04-08 09:54 分类:问答Returning a pointer to an object ( C++ Templates ) Error
I\'ve been asked to switch three classes for a university assignment over to templates to make them more generic but I\'m having problems when trying to return a pointer to an object from a template f[详细]
2023-04-08 07:34 分类:问答What is an opaque pointer in C?
May I know the usage and logic behind the opaque pointer concept in开发者_StackOverflow C?An opaque pointer is one in which no details are revealed of the underlying data (from a dictionary definition[详细]
2023-04-08 06:20 分类:问答In C, how to initialize a pointer-to-pointers from inside a function?
Following this answer, I made a simple example to be sure I properly understood: #include <stdlib.h>[详细]
2023-04-08 05:54 分类:问答SQL Server: pointing to the ID from other table
I have two tables: (ID = int, Match = varchar, Status = char) TableA ID1 Match1 Status1 231200PASS 241300FAIL[详细]
2023-04-08 00:23 分类:问答How to send a 2-D array as a reference in C++, and back?
yet another beginner-to-intermediate question. I\'m trying to pass a 2-D array to a function in C++. I\'m aware that the array can\'t be sent directly to the function, so I first created a pointer (na[详细]
2023-04-07 23:42 分类:问答difference between int bar[10] vs int (*bar)[10]
int bar[10]; /* bar is array 10 of int, which means bar is a pointer to array 10 of int */ int (*bar)[10]; /* bar is a pointer to array 10 of int */[详细]
2023-04-07 19:28 分类:问答Array of struct pointers and assigning struct data
I have run into a problem or maybe I am just doing something wrong since I am new to C and structs.I want to take a text file such as this:[详细]
2023-04-07 16:28 分类:问答