What Will The Preprocessor Do For A Program
What Will The Preprocessor Do For A Program
The preprocessor reads in all of your include files and the source
code you are compiling and creates a
preprocessed version of your source code. This preprocessed
version has all of its macros and constant
symbols replaced by their corresponding code and value
assignments. If your source code contains any
conditional preprocessor directives (such as #if), the
preprocessor evaluates the condition and modifies your source
code accordingly.
...
int x = 20;
DEBUG_VALUE(x);
...
No, once the proper catch code fires off, the control is
transferred to the finally block (if there are any), and then
whatever follows the finally block.
eg:
try
{
int i=0;
int j=10/i;
}
catch(DivideByZeroException ex)
{
}
catch(execpetion ex)
{}
Contact Priya
No only one catch u can use for one try block after that it will go
to the finally block
Pointers,structures,unions,arraysfile handling
Example:
#include <stdio.h>
int main()
{
int arr[][2]={1,2,3,4,5,6,7,8};
//where as int arr[4][]={1,2,3,4,5,6,7,8}; gives the error.Coz
here compiler gets confuse how much space to allocate to
column of a row.
int i,j;
for(i=0;i<4;i++)
{
for(j=0;j<2;j++)
printf("%d ",arr[i][j]);
printf("
");
}
getch();
}
Output:
12
34
56
78
#include< >
and
#include" "
# include < > ---> Specifically used for built in header files.
What is C language?
This is just the usage point of view. But from the compiler point
of view the #include" " will make compiler search only in the
local directory.