Advertisement
FamiHug

C's Namespace

Jun 9th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.90 KB | None | 0 0
  1. /*
  2.  * =====================================================================================
  3.  *
  4.  *       Filename:  namespace.c
  5.  *
  6.  *    Description:  test the C namespace
  7.  *
  8.  *        Version:  1.0
  9.  *        Created:  06/09/2011 03:48:57 PM
  10.  *       Revision:  none
  11.  *       Compiler:  gcc
  12.  *
  13.  *         Author:  FamiHug (fh), famihug@gmail.com
  14.  *        Company:  familug.blogspot.com
  15.  *
  16.  * =====================================================================================
  17.  */
  18.  
  19. #include <stdio.h>
  20.  
  21. int main(int argc, char **argv)
  22. {
  23.     int c = 8;
  24.     printf ("1_%d\n",c);
  25.     {
  26.         float c = 2.5;
  27.         printf("2_%f\n",c);
  28.         {
  29.             char c = 'c';
  30.             printf("3_%c\n",c);
  31.             {
  32.                 int c = 3;
  33.                 printf("4_%d\n",c);
  34.                 {
  35.                     char *c = "Test about C's namespace";
  36.                     printf("*_%s\n",c);
  37.                 }
  38.             }
  39.             printf("5_%c\n",c);
  40.         }
  41.         printf("6_%f\n",c);
  42.     }
  43.     printf("7_%d\n",c);
  44.  
  45.     return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement