Can someone explain with an example for dummies about difference between arrays and pointers, on C language? - arrays

Maybe is a very dummy question, but i cant understand about it, y watched a lot of videos and read online, but i don't get it at all. Thank you so much for time and help.

Related

Removing Polyphony from Audio

here's an interesting question:
Suppose I have an audio recording of a C major chord (C-E-G) played on the piano, which I would like to separate into three separate audio files - one with only C, one with only E, and one with only G playing (even a single audio file of a single note would suffice). I know software like Melodyne is capable of doing such things but would love for anyone to guide me in the right direction here.
What I've already tried: writing a neural network to do this (but honestly that feels like overkill.. this shouldn't be that challenging), and playing with the STFT and trying to figure something out from there.
Any help would be greatly appreciated!

Finding out the correctness of a "while-loop" using hoare-logic

I currently am struggling to figure out, how to show that a program, which includes a loop, is correct. I am working on the basis of wp, vc and pc.
The loops in question are:
wp(while(i<n) i = i+1; | i >= n)
wp(while(true) x=4; |x=4)
where everything befeore the ";" is the program and everything after the "|" is the postcondition.
I heard in my lectures that you have to find the invariants as well as the terminating function of the program, but i currently do not really know how to do this intuitively. I heard, that you need to train this, but i did not see a example on this yet, mostly just theory. If someone could help me explain the verification of loops, that would be really kind.
I appreciate every bit of help.

Save image in C

I'm just learning C language, so I apologize in advanced if my question is not clear or if I'm asking the wrong question (or a dummy question).
I wrote a code in C that produces the fractal fern points and then plots them using openGL.
My code is similar to the one found here (http://www.cs.csubak.edu/~marc/code/opengl/fern.c).
Now I want to save the image that I obtained to a file. I've been searching about this and most of the answers suggest to use a library for this, but I'd like to write my own function. I understand that the first step is to use glreadpixels to read the pixel, but I'm not sure what should be the next step.
Thanks for your time and help
libbmp is a very good choice.
http://code.google.com/p/libbmp/

What is a "scan" in VGA programming?

I've been reading this reference: http://www.osdever.net/FreeVGA/vga/vgafx.htm
to learn VGA programming, but because I'm a student that just started learning about low level programming, I find it hard to understand. What does it mean when the reference says "scan"?
Especially in the "Split-screen Operation" section in the article, I'm not sure how "scan" is related to splitting the window.
I'd appreciate it if someone can explain briefly or link me to another reference where I can learn about it.
A Scanline is a single pass across the screen horizontally.

WORKING example of buffer overflow in Damn Vulnerable Linux

I've had a lot of trouble in getting through buffer overflow exploits from start to finish. I end up with a sigsegv fault instead the intended result. I just downloaded Damn Vulnerable Linux and all I see from reviews about it is 'effective at teaching sql injection..., something, else, buffer overflows'.
However I can not find any tutorials or examples of buffer overflow for DVL. Does anyone know about any working ones?
I have tried:
http://www.damnvulnerablelinux.org/
which literally doesn't have anything on the site.
I have googled a lot and have only found DVL in reviews.
If someone can point me in the right direction it would be much appreciated. Especially if someone has executed a buffer overflow example iv DVL.
Cheers
http://www.linuxjournal.com/article/2902
This is a working example of a buffer overflow that is from the book, The Art of exploitation' It works I have tried it. Great book by the way

Resources