Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 17050

The problem set for Week 2 continues with the C programming language used in problem set 1.

2 votes

pset2 crack segmentation fault

I believe this has something to do with the <= in your for loop. You would iterate 53 instead of 52 times, allowing s[0] = alpha [53] which would be out of range thus causing a segmentation error. I b …
Davis's user avatar
  • 144
0 votes
1 answer
109 views

How to better condense individual for loops per amount of characters on crack.c

currently I have a working solution for crack.c. However, it relies on me the programmer copying the previous for loops for the previous amount of characters before it and adding another for loop with …
Davis's user avatar
  • 144
1 vote

pset2 segmentation fault

While working with your code, I seemed to notice that i++ would keep going on forever as long as the string was not invalid. This would mean that as it keeps looping and looping, eventually you would …
Davis's user avatar
  • 144