space of integer depends on the machine you are using. Eg. 32 bit system int would take 4 bytes. Space taken by the pointer is equal to the space of address it needs to store. Here it will take 4 bytes to save the address of a integer. Correct me if I am wrong.
On Fri, Sep 16, 2011 at 9:23 PM, Rahul Verma <rahulverma....@gmail.com>wrote: > How much space does a pointer and integer takes? > For eg :- > int a; > int *a; > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/RmPHywrTUbkJ. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Regards Ravi Maggon B.E. CSE, Final Year Thapar University www.algorithmguru.com "*Failure is the opportunity to begin again more intelligently"* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.