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 27355

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

1 vote
Accepted

Having problems with Pset2, argv[1]: program doesn't 'see' it

It's because you have return 1; after your if statement, that will just exit the program in that line and will not proceed to the next lines. That return should be inside your if statement therefore i …
Ojou Nii's user avatar
  • 731
1 vote
Accepted

Incompatible pointer to integer conversion passing 'int on functions

You are not saving the value from your functions. What you're doing is the you call the function then the function counts the sentences and returns the count but your not assigning that return value t …
Ojou Nii's user avatar
  • 731
0 votes

PSet2 / Substitution

Your problem is what you exactly told the program to do, you said if it is a lowercase char you turn it into uppercase and vice versa. Also your else statement and continue can be omitted since you're …
Ojou Nii's user avatar
  • 731
0 votes

Counting apostrophe

Is this for readability?? if it is then don't bother reading it just create conditions for letters, words, and punctations for sentences don't use an else statement, so when your program reads an (') …
Ojou Nii's user avatar
  • 731