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 questions only not deleted user 41028
3 votes
2 answers
52 views

Why can you say the name of an array is a pointer to the first element of the array in C?

I have tried to understand why you can say the name of an array is a pointer to its first element in C. Could you please tell me if my understanding below is correct? … But, since making a copy of all the elements of an array is not efficient when you pass it to a funciton, computer scientists decades ago designed the C language to pass arrays by reference. …
Yuya Ito's user avatar
1 vote
2 answers
121 views

Problem Set 2 (Scrabble) / Variable Scope

Could you please help me find out about variable scope? Below is a program for the CS50 Scrabble assignment. I initialized score1 = 0, score2 = 0 atop. I thought since they are global variables, when …
Yuya Ito's user avatar
1 vote
1 answer
62 views

Please help debug linear search program in C

Could you please help me debug a linear search program I wrote in C? …
Yuya Ito's user avatar
1 vote
1 answer
56 views

Are boolean variables left uninitialized true or false?

I have a question about why something is being done in the provided stub code for Tideman. here bool locked[MAX][MAX] is left uninitialized early in the program when it is declared. Later every elemen …
Yuya Ito's user avatar