Hello There, Guest! Login Register
Advertise Here | Remove Ads

Need Help Help with C arrays and pointers

  • 0 Vote(s) - 0 Average


09-27-2016, 02:29 AM #1
Paglufan Offline FFU NEWCOMER FFU NEWCOMER
Posts:21 Threads:7 Joined:Oct 2014 Reputation: 0
FFUC: $0
I want to access a member of a struct which is a pointer to the same type of struct in the same array, then access its member, an int, and increase its value by one.
arrayOfStructs[int].pointerToAnotherarrayOfStructs->int++;
Does not produce any errors or warnings, but crashes when reached by the program.
Help? Anyone


10-03-2016, 07:12 PM #2
top49 Offline FFU NEWCOMER FFU NEWCOMER
Posts:15 Threads:5 Joined:Sep 2016 Reputation: 0 Sex Male
FFUC: $0
Country: Romania
try to post here the entire code to understand what it's going wrong there






Forum Jump:


Users browsing this thread:1 Guest(s)