GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS
Go To First  |  Previous Question  |  Next Question 
 TCS  |  Question 15 of 23    Print  
what is the difference between typedef and #define

  
Total Answers and Comments: 1 Last Update: April 22, 2007     Asked by: puja_ag16 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 22, 2007 00:07:35   #1  
narendra        

RE: what is the difference between typedef and #define...
#DEFINE IS used to give a constant value to a variable
example 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.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Hard work means that you do every work & every time with your full potential, energy & Skills.On the other hand smart work is do any work with less  efforts, & get better result. ...
Read Answers (19) | Asked by : satrajit das

Latest Answer : A loosely defined set of technologies developed by Microsoft. ActiveX is an outgrowth of two other Microsoft technologies called OLE (Object Linking and Embedding) and COM (Component Object Model). As a moniker, ActiveX can be very confusing because it ...
Read Answers (1) | Asked by : Anoop Upadhyay

Latest Answer : #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 ...


 Sponsored Links

 
Related Articles

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

Difference between Scholarship and Grant

Difference between Scholarship and Grant While both scholarships and grants allow students to pay for their tuition without having to pay the money back there are a number of key differences between the two Knowing the difference between grants and scholarship will make it much easier for students t
 

The Difference Between Data Mart and Data Warehouse

The Difference Between Data Mart and Data Warehouse The biggest decision facing most IT managers today is whether or not they should construct the data mart before the data warehouse Many vendors will tell you that data warehouses are hard to build as well as expensive mosgoogle If you listen to som
 

Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape