Friday, October 26, 2012

Generating Various Patterns Using Loops

Implementing m pattern using 'c'
M Pattern

Code :


main()
{
int i,j,n;
printf("Enter n:");
scanf("%d",&n);
for(i=0;i<n;i++)
{

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)


Thursday, October 4, 2012

Directory Structure and basic commands to start using linux



Directory Structure In 'Linux' :
' / '  - Root Mount Point
' ~ '  - Home Directory For User
' . '  - Reference To Current Directory
' .. ' - Reference To Parent Directory Of Current Directory


  
Purpose Of The Above Directories:

root :
Like Administrator In Windows.