C++ Programming

C++ Programming


Agricultural Technology Management Agency

Posted: 29 Apr 2013 09:56 AM PDT

Agricultural Technology Management Agency Address: Agricultural Technology Management Agency, Bridge House, Birhata Postal Code: 713101 City Burdwan State West Bengal Pay Scale: Rs. 12,000/- per month Educational Requirements: B. Tech/MCA Date Posted: 04/09/2013 Experience Requirements: One year experience. Details will be available at: http://bardhaman.nic.in/noticeboard/

Other Preprocessor commands

Posted: 29 Apr 2013 09:14 AM PDT

There are a handful more preprocessor commands which can largely be ignored by the beginner. They are commonly used in "include" files to make sure that things are not defined twice. NOTE : 'true' has any non zero value in C. 'false' is zero.  #undef         This undefines a macro, leaving the name free. #if                 This is followed by some expression on the same line. It allows

Understanding Macro Functions

Posted: 29 Apr 2013 08:47 AM PDT

A more advanced use of macros is also permitted by the preprocessor. This involves macros which accept parameters and hand back values. This works by defining a macro with some dummy parameter, say x. For example: a macro which is usually defined in one of the standard libraries is abs() which means the absolute or unsigned value of a number. It is defined below: #define ABS(x) ((x) < 0) ? -(x

Conversion characters

Posted: 29 Apr 2013 04:37 AM PDT

The conversion characters for scanf are not identical to those for printf and it is much more important to be precise and totally correct with these than it is with printf. d                        denary integer (int or long int) ld                       long decimal integer x                        hexadecimal integer o                       octal integer h                       short

Preprocessor Commands

Posted: 29 Apr 2013 04:13 AM PDT

C is unusual in that it has a pre-processor. This comes from its Unix origins. As its name might suggest, the preprocessor is a phase which occurs prior to compilation of a program. The preprocessor has two main uses: it allows external files, such as header files, to be included and it allows macros to be defined. This useful feature traditionally allowed constant values to be defined in

Variables, Types and Declarations in C

Posted: 29 Apr 2013 04:06 AM PDT

A variable is a seqeuence of program code with a name (also called its identifier ). A name or identifier in C can be anything from a single letter to a word. The name of a variable must begin with an alphabetic letter or the underscore '_' character but the other characters in the name can be chosen from the following groups: a .. z (any letter from a to z) A .. Z (any letter from A to Z) 0 .


Post a Comment