Ask a Question

how to know that how much memory is required for a particular C program????Also How much time it takes for compiling???If anybody know pls reply...

on 2010-09-06 21:55:59   by Suman   on Computer Science & Engineering  7 answers

RICHIK

on 2010-09-07 09:30:00  

a c prog hardly reqiures 15 or 20 kb memory on ur hard disk. but execution of a prog depends on the capacity of ur physical memory.if u have a ram of 32 or 64 mb then it is better to run a prog with no other aplications running.

LiVeRpOoL FoOtBaLL cLuB

on 2010-09-09 09:30:00  

@RICHIK MAJUMDAR that isnt the answer to the question asked i guess!!!

Ayan

on 2010-09-09 09:30:00  

Refer to compile log......

Suman

on 2010-09-10 09:30:00  

yes,that is not my point.....my question is:Suppose I develop a same program by 2 different logic...then I have to check which one is using less time and less memory,then that program will be better....How to know that I want to know.

LiVeRpOoL FoOtBaLL cLuB

on 2010-09-10 09:30:00  

@Ayan wats a compile log???

Nikhilesh

on 2010-09-19 09:30:00  

well regarding the time ... u can use the clock provided by C ... in time.h regarding space complexity ... i think it needs to be calculated manually

Gouranga

on 2010-09-19 09:30:00  

I am with Nikhilesh... as both time and space complexity both are in order of some thing (eg. O(n)).... the exact time and space required for execution depends on your inputs.....as well as logic...