Submitted Questions

  • what is the difference between typedef and #define

    narendra

    • Apr 22nd, 2007

    #DEFINE IS used to give a constant value to a variableexample if #DEFINE PI 3.14 is used then the value 3.14 is used where ever we use the variable PI.TYPE DEF is the user defined name to an already existing keyword, ex. We can use AMOUNT as a USER DEFINED name in place of FLOAT keyword.