Assignment 4 - 12 Variable Limit

87 views
Skip to first unread message

Jenna Liebe

unread,
Nov 7, 2020, 1:43:25 PM11/7/20
to cmpt-295-sfu
SFU ID: 301358537
Github username: jel-cmpt295
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor): https://github.com/CMPT-295-SFU/assignment-4-jel-cmpt295
Line and file: trans.c, lines 74-76
Expected behavior: N/A
Observed behavior: N/A
Question: In my code, I declared 4 ints, a const int, and an array of 8 more ints. Since a constant isn't changed during the program's execution, does this count towards the 12 variable limit? Also, do the ints passed in (M, N, A[M][N] and B[N][M]) count towards that limit? 
If the ints passed in and constants don't count, I should be under the 12 variable limit in the lines I mentioned, right?
Thank you!

b.minh96

unread,
Nov 8, 2020, 10:26:05 PM11/8/20
to cmpt-295-sfu
The const int will still count towards the 12 variable limit.
The ints passed in don't count.

Jenna Liebe

unread,
Nov 8, 2020, 11:02:49 PM11/8/20
to cmpt-295-sfu
Okay, thank you!
Reply all
Reply to author
Forward
0 new messages