Exforsys

Online Training

Use of the Directive

This is a discussion on Use of the Directive within the C and C++ forums, part of the Programming Talk category; What is the use of #if directives in C programming language. If someone could provide me the syntax and it ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-26-2007, 04:45 PM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
Exclamation Use of the Directive

What is the use of #if directives in C programming language. If someone could provide me the syntax and it would help me a lot.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2007, 09:31 AM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
The #if directive controls compilation of portions of a source file. If the expression you write after the #if have a nonzero value, the line group immediately following the #if directive is retained in the translation unit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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



All times are GMT -4. The time now is 11:56 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.