Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * =====================================================================================
- *
- * Filename: namespace.c
- *
- * Description: test the C namespace
- *
- * Version: 1.0
- * Created: 06/09/2011 03:48:57 PM
- * Revision: none
- * Compiler: gcc
- *
- * Author: FamiHug (fh), famihug@gmail.com
- * Company: familug.blogspot.com
- *
- * =====================================================================================
- */
- #include <stdio.h>
- int main(int argc, char **argv)
- {
- int c = 8;
- printf ("1_%d\n",c);
- {
- float c = 2.5;
- printf("2_%f\n",c);
- {
- char c = 'c';
- printf("3_%c\n",c);
- {
- int c = 3;
- printf("4_%d\n",c);
- {
- char *c = "Test about C's namespace";
- printf("*_%s\n",c);
- }
- }
- printf("5_%c\n",c);
- }
- printf("6_%f\n",c);
- }
- printf("7_%d\n",c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement