Java programs (source codes) examples
Conversion
of binary number to decimal number using java programming language
Decimal
to binary conversion in java
Check
leap year in java
Factorial
program in java
Multiplication
tables program in java
Prime
factors of a number in java
Floyd�s
triangle program in java
Swapping
two variables without using third variable in java
LCM
of two numbers
Saturday, January 29, 2011
Saturday, January 22, 2011
#pragma warn directive in c
In c there are many warning messages which can be on or off with help of #pragma warn.
Syntax :
#pragma warn +xxx
#pragma warn �xxx
#pragma warn .xxx
Where
+ means on
- means off
. means on/off (toggle)
xxx is indicate particular warning code in thee alphabet. Example :
rvl is warning code which means function should return a value.
#include
#pragma
#pragma inline directive in c
#pragma inline directive in c
#pragma inline only tells the compiler that source code of program contain inline assembly language code .In in C we can write assembly language program with help of asm keyword.
Preprocessor definitions in c
Preprocessor directive in c
#include directive in c
# define directive in c
Pragma directive in c
#pragma startup and #pragma exit
#pragma inline
#pragma inline only tells the compiler that source code of program contain inline assembly language code .In in C we can write assembly language program with help of asm keyword.
Preprocessor definitions in c
Preprocessor directive in c
#include directive in c
# define directive in c
Pragma directive in c
#pragma startup and #pragma exit
#pragma inline
Preprocessor directives in c
In c all the preprocessor directives start with # character except define() operator. All the directives have different task which executes just before the actual execution of c program which makes the program more portable. These directives are used only to instruct compilers.
List all preprocessor directives in c.
Preprocessor definitions in c
Preprocessor directive in c
#
What is header file in c?
Include directory is special directory which content all the header files of c language. Extension of header files in c language is h. All header files only keep declaration of functions, declaration of data type and micro constants. Body of function i.e. function definition is not written in the header files. Hence no one can get source code of function like printf, clrscr etc. All the
Preprocessor definitions and directive in c
C preprocessor directives
All the preprocessors in c are not part of actual c programming language. When c language had introduced in the market there are different architecture of computers was present. To make the c language portable in different architectures or compilers, c language developer had introduced preprocessor. It is only instruction to compiler. All the preprocessor process
#include directive in c
Syntax:
#include
or
#include �filename�
Task of include directive is to include or import any type file. There are two form of include directive.
Form 1:
#include
Subscribe to:
Posts (Atom)