0

How can i see my C program disk space usage ?

My question is how can i see how much memory does my C program take on my hard disk. I want to know a little bit better in depth about memory. For example: #include<stdio.h> int main() { int n=5; return 0; } Where can i find how much disk space does this program take ? And if i add another line int n1=5; it should take, if we mark the memory of the first program as X, X+4bytes. Is this right or have i done something wrong ? I was looking at the main.c file properties size on disk was increasing only by writting and in the main.exe the size on the disk wasn't even changing.

14th May 2019, 9:18 PM
Marko Majstorovic
2 Antworten
14th May 2019, 10:48 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
I like the idea but it wasn't what i was looking for. Nevertheless i found out that this question can't be answered because it's a really big field of knowledge.
15th May 2019, 1:55 AM
Marko Majstorovic