Showing posts with label Basics Of C. Show all posts
Showing posts with label Basics Of C. Show all posts

Monday, October 22, 2012

Operators In 'C' :

Assignment (=)
Case :- Lvalue Error


main()

{
int a = 10 , b = 20;
printf("a=%d b=%d\n",a,b);
b= ( a*b/a=b );
printf("a=%d b=%d\n",a,b);
}

Sunday, October 7, 2012

Behavior of variable data in c and floating point data representation


Data Type 

Format Specifier

Size( In BYTES)


Range
Integral Data

Saturday, October 6, 2012

Is main() function A Mandatory In C Programming ?

Every ' C '  Program Must Contain A Function , At least One :
It doesn't  Mean That It Must be main() Function.

         A  Statement, For Execution Must Be The Part Of A Function Block.

Case :- 1

# include<stdio.h>
printf( " Before Function \n" );
main()

{
printf( " In Function \n" );
}
printf( " After Function \n" );


O/P :- Results In An ERRORS .
(As The Statements printf( " Before Function \n" ); and printf( " After Function \n" ); are not part of Function block They Result In Errors)


Sunday, September 30, 2012

Single step compilation of a program

Steps Of Program Compilation In Respective Order :

1.Pre-processor
2.Translator
3.Assembler
4.Linker
5.Loader

1. Pre - Processor :

--> I st Stage In Multistage Compilation.
--> It Works Directly On Source File.
--> Converts Input Source File ('.c' etc)  To Expanded Source File('.i') .

                      Where '.i' File Is A Source File ,Which Is :