Sunday, September 25, 2011

Return current time

Return current time
=============
Macro: __TIME__
Return as: String
Example:
    # include<stdio.h>
    int main()
    {
    printf("Current time: %s",__TIME__);
    return 0;
    }

Return line number

Return line number
=============
Macro: __LINE__
Return as: Integer
Example:
    # include<stdio.h>
    int main()
    {
    printf("Current time: %d",__LINE__);
    return 0;
    }

From: Me 

Return file name

Return file name
=============
Macro: __FILE__
Return as: String
Example:
    # include<stdio.h>
    int main()
    {
    printf("Current time: %s",__FILE__);
    return 0;
    }

From: Me 

Return current date

Return current date
=============
Macro: __DATE__
Return as: String
Example:
    # include<stdio.h>
    int main()
    {
    printf("Current time: %s",__DATE__);
    return 0;
    }

From: Me 

Checking ANSI C

Checking ANSI C
============
Macro: __STDC__
Example:
    # include<stdio.h>
    int main()
    {
    printf("Checking ANSI C: %s",__STDC__);
    return 0;
    }

From: Me

Sunday, September 18, 2011

About creation

Today i register this blog account.
I have aim to publish many necessary topics by this blog site.
If i will response visitors, i must proud.
You can comment about my blog by signing up in this blog site.
You can give me guideline about any topics by mailing.
Thanks  for stay with me...


From: Sumon Sarker