Feb 27, 2013 at 10:34am UTC
Q -printf() is part of code segment but found in data segment.......why?
Last edited on Mar 1, 2013 at 9:57am UTC
Feb 27, 2013 at 12:50pm UTC
I'm not sure your question makes any sense without some more context. This almost sounds like this is out of a text book, where they would have just talked about this in the chapter before the question or something. Could you elaborate a little more?
Feb 27, 2013 at 1:34pm UTC
A is part of B but is found in B .
Not sure if you wrote that wrong because it sounds very obvious. I think printf is in the code segment because all code is in the code segment, right?
Feb 27, 2013 at 2:51pm UTC
Perhaps he made a typo and is actually confused about how it's used but not found in the code?
This is because it's in <cstdio> (stdio.h)
Look for #include <cstdio>
or #include <stdio.h>
at the top of the program - it's in there.
Last edited on Feb 27, 2013 at 2:51pm UTC
Mar 10, 2013 at 7:56pm UTC
sorry my mistake Q is
printf() is part of code segment but found in data segment why?