Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 25

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 110

Answer:

main()
{
41printf("%p",main);
}


Answer:
Some address will be printed.


Explanation:
Function names are just addresses (just like array names are addresses).
main() is also a function. So the address of function main will be printed. %p in printf specifies that the argument is an address. They are printed as hexadecimal numbers.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 25 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: