Groups
Groups
Sign in
Groups
Groups
cmpt-295-sfu
Conversations
Labels
About
Send feedback
Help
a=a+1
50 views
slides
Skip to first unread message
Arrvindh Shriraman
unread,
Sep 11, 2020, 9:23:37 PM
9/11/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cmpt-295-sfu
Someone asked about whether you can write a = a+1
int main() {
int a[10];
int *p;
p = a;
a=a+1;
error: incompatible types when assigning to type 'int[10]' from type 'int *'
p = p + 1; // VALID. is just set to p = &a[1]
return 0;
}
Reply all
Reply to author
Forward
0 new messages