Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-10-2008, 11:19 AM   #1 (permalink)
Old is Gold
 
prem4u's Avatar
 
Join Date: Sep 2006
Posts: 84
Default Diff B/w Macro and Inline


can anyone give brief explaination of diffrence between Macros and inline of C..??

general diffrence, Diff in Memory allocated and used..
__________________
Ab kya likhe....??
prem4u is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-10-2008, 11:37 AM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Diff B/w Macro and Inline

AFAIK, in-line functions are handled by the compiler while macros are handled by the preprocessor. Also, inline would follow the type safety like other normal functions in C++ while macros do not.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 06-10-2008, 11:45 AM   #3 (permalink)
Wise Old Owl
 
a_k_s_h_a_y's Avatar
 
Join Date: May 2007
Location: bangalore
Posts: 1,923
Default Re: Diff B/w Macro and Inline

also inline are functions.. not blind substitute like macro.
__________________
Sony Ericsson Flashing, Modding, Patching, Hacking And More !
http://www.akshayy.com/sonyericsson/
a_k_s_h_a_y is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Macro hjpotter92 QnA (read only) 1 08-10-2008 06:41 PM
Excel VB Macro arian29 Programming 1 23-06-2008 09:36 PM
macro flash and dreamweaver himtuna Software Q&A 5 29-11-2005 07:44 PM

 
Latest Threads
- by clinton
- by soumya
- by Sujeet
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2