E F
Embedded system guide for programmers, varied range of content('C','Linux','Micro controllers','Socket Programming'...) related to embedded systems
Friday, October 26, 2012
Generating Various Patterns Using Loops
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);
}
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)
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)
Thursday, October 4, 2012
Directory Structure and basic commands to start using linux
Subscribe to:
Posts (Atom)