This is a 'c language program'.In this %p is used to printf adress of the function in the memory.It prints ASCII values when used with characters,floats,integers.See o/p many times.See it with different compilers and give answer.
#include%26lt;stdio.h%26gt; #include%26lt;conio.h%26gt; void main(){ clrscr(); printf("%p",main); } what is the o/p and why?
^^^ is a knucklehead! I have over 1500 answers and none of them are canned. Many other people also provide good, original answers.
The output is the address in memory where your main function has been loaded. The output could be different each time you run it depending on the environment you're in.
Reply:Ahhh - my mistake... its the memory offset to the main function from the start of the executable file. Report It
Reply:My friend, all that is on Answers are people with CANNED RESPONSES. You need to visit a programmers forum and ask this question. Go to www.Internet.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment