C Pointer problem
Hi,
I can't understand why this code causes a "memory read exception" at
int x=**a;
void pass(int** a)
{
int x=**a;
}
void main()
{
int arr[2][2]={{1,2},{3,4}};
pass(arr);
}
The assignment of int int x=**a in the main function works.
Tanks for your help,
Markus
.
Relevant Pages
- Re: C Pointer problem
... I can't understand why this code causes a "memory read exception" at ... void pass ... The assignment of int int x=**a in the main function works. ... (comp.lang.c) - [patch v2] x86: Add testcases for RODATA and NX protections/attributes
... +config DEBUG_RODATA_TEST ... this implies having dynamic exception handling table entries. ... +static void test_exit ... (Linux-Kernel) - Re: Object reference not set to an instance of an object.
... > The event handler WTGDataRowReady10Handler is called by a delegate in the ... > catch (Exception ex) ... > private void WTGDataRowReady10Handler( ... (microsoft.public.dotnet.languages.csharp) - Re: N1298 - try/finally for C
... Using a void*, or something containing a void*, gives ... Then we have a function that potentially throws an exception: ... If you mean some custom allocator, then we generally need to pass yet ... As for function pointers, and besides that throwing function pointers ... (comp.std.c) - [RFC] Improved versioned pointer algorithms
... The orphan test is used in snapshot write and exception delete to ... The current method of determining whether a ghost exception is an ... its child count then the ghost exception is an orphan, ... void set_bit ... (Linux-Kernel) |
|