4
votes
Accepted
Floating Point Imprecision
While it is easy to represent integers in a computer, it is different for floating point numbers. Most FP numbers cannot be precisely represented inside a computer. The reason is because numbers are ...
- 66.7k
3
votes
Accepted
'\0' vs '0' : What's the difference?
Characters in C Language are in ASCII encoding. For now, you need to know that there is a unique numerical value associated with any* character that you can think of. Lets have a look.
I will be ...
- 3,396
3
votes
Accepted
Do we need to return 0 in C?
Typically and according to the standard, the return value of main should be of type int which obviously means that you should return an int value from main.
However, you don't really have to do that ...
- 17.6k
2
votes
What programmable lightbulbs are used on the CS50 stage demos?
The binary-through-bulbs-API demonstration was, indeed, intriguing. An entire video seminar, in fact, led by Dan Bradley '14, offers step by step instruction, entitled Light Your World (with Hue Bulbs)...
- 25
2
votes
Accepted
Class Notes referenced in lecture week 5
http://cdn.cs50.net/2014/fall/lectures/5/m/notes5m/notes5m.html
There are class notes available for every lecture, they are posted under the videos.
- 667
2
votes
When do the CS50 lectures get updated?
The 2015 edX course uses the 2014 Fall Harvard lectures. They will not be updated, as the course runs until 31 December 2015.
The 2016 edX course will then use the 2015 Fall Harvard lectures.
So ...
- 18.5k
2
votes
'\0' vs '0' : What's the difference?
Characters are represented and stored in the computer using a numeric value called an ASCII value. (ASCII stands for American Standard Code for Information Interchange.) A '0' character is stored in ...
- 66.7k
2
votes
Accepted
Why do computers count from zero?
you can see the following link
https://superuser.com/questions/578292/why-do-computers-count-from-zero
- 5,201
2
votes
Accepted
Lecture 2 Arrays
The error you are getting is not saying that you are passing a double instead of a float, but that a double is expected. You are passing average, which is not a variable but a function. Your prototype ...
- 1,852
1
vote
Accepted
Lecture 5 Data Structures Source Code Error
The problem is the free list command following the temp[3] assignment. It breaks the program.
At that point, list contains the address of the reallocated memory. So, that memory is deallocated. The ...
- 66.7k
1
vote
Accepted
Purpose of sizeof(book)/sizeof(string) in lectures' binary sort?
That code calculates the number of elements in the array book[]. sizeof(book) is the total size of the array, 72 bytes. Next, remembering that this is an array of pointers to strings ( the CS50.h ...
- 66.7k
1
vote
Accepted
Help on taking CS50x course
The material for each pset is presented in a timely manner and pretty thoroughly. You should do the psets as they are presented. In no case is it necessary to watch material that is presented after a ...
- 66.7k
1
vote
'\0' vs '0' : What's the difference?
ultimately, computers use numbers to represent data of any kind (e.g., individual characters, text strings, images, media files, numbers, etc).
you might be wondering how can a computer be capable ...
- 17.6k
1
vote
Accepted
2016 New CS50 - Do I need to rewatch lectures?
Probably not. I am rewatching them, but I got distracted by real life and other things after a couple of lectures, but if you're farther in I would think it's not necessary. They're always there if ...
- 26
1
vote
2016 New CS50 - Do I need to rewatch lectures?
They cover the same material but may be in slightly different order. I'd suggest reading the given notes for each lecture to make sure you still remember what was taught in that lecture. The notes ...
- 18.5k
1
vote
Where can I watch the video lectures of cs50 2015?
The current versions (Fall 2015) of the lecture videos are available on youtube at the following link: https://www.youtube.com/playlist?list=PLhQjrBD2T383Xfn0zECHrOTpfOSlptPAB
However I don't know if ...
- 11
1
vote
Week 5 Lecture 1 @ 41:05
It is true that x is a pointer, but it is a pointer to a block that can hold a maximum of 10 integer values. Arrays, in C, technically work the same way; an array name's decay to a pointer to the ...
- 17.6k
1
vote
Week 8 Source Code
Found zip file at http://cdn.cs50.net/2014/fall/lectures/8/m/ But, please add link to CS50x courseware.
- 61
1
vote
Do we need to return 0 in C?
I am not sure which video he mentions this (at least, I hope he does) in the new videos, but somewhere in last years videos I caught the answer to this question.
Basically, C is smart enough that, ...
- 293
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
lectures × 33course-info × 7
cs50x × 4
week1 × 3
edx × 2
week2 × 2
pset4 × 1
pset3 × 1
c × 1
sql × 1
binary-search × 1
cs50-web-programming-with-python × 1
sort × 1
function × 1
printf × 1
submissions × 1
arrays × 1
float × 1
cs50x2018 × 1
getstring × 1
postgresql × 1
week7 × 1
week9 × 1
psets × 1
bytes × 1