I am using pic24fj128ga010 controller and CCS compiler v 4.078.
I am getting errors for the following code.
Code:
void main()
{
int (*temp)[2]; /* pointer to an array */
}
I am getting the following errors for the declaration of 'temp'
1. Expecting a (
2. Expecting declaration.
What can be the problem?
Does ccs support pointers to arrays?
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
Posted: Mon Sep 15, 2008 9:36 am
I didn't check particularly, but following general C syntax a simple int pointer should do. There is no need to supply an array size with the definition, if you increase the pointer, it addresses the next array element.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum