Announcement

Collapse
No announcement yet.

What Language is this?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What Language is this?

    I found this and i don't know what language to write it in. Does anyone else know?? Hint: if u know, down execute it on yourself!


    char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 };

    main ()
    { void (*f) () = x;
    f () ;
    }
    You tried your best on me, but you failed miserably -FlaNk

  • #2
    Originally posted by FlaNk
    I found this and i don't know what language to write it in. Does anyone else know?? Hint: if u know, down execute it on yourself!


    char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 };

    main ()
    { void (*f) () = x;
    f () ;
    }


    This post messed up the spaces i used in that language, but i don't know if that matter.
    You tried your best on me, but you failed miserably -FlaNk

    Comment


    • #3
      I'm gonna guess C too...
      Ich Will...
      Du Hast....
      Spiel Mit Mir...

      Comment


      • #4
        Im thinking C++. I'm probably wrong, but check out the example below. It has similar characters and is about the same format.

        C++ example-

        main()
        {
        clock_t time,deltime;
        long junk,i;
        float secs;
        LOOP:
        printf("input loop count: ");
        scanf("%ld",&junk);
        time = clock();
        for(i=0;i<junk;i++)
        deltime = clock() - time;
        secs = (float) deltime/CLOCKS_PER_SEC;
        printf("for %ld loops, #tics = %ld, time = %f\n",junk,deltime,secs);
        goto LOOP;
        return 0;
        }

        Comment


        • #5
          not C++, that's C... printf/scanf are both keywords to C, and a quick visit to google, and I as able to say this... I know at least the second example is C...
          /me goes back to lurking
          Last edited by windwalker3579; October 14, 2003, 10:45.
          Ich Will...
          Du Hast....
          Spiel Mit Mir...

          Comment


          • #6
            Come on guys... look at the syntax... it's gotz to be BASIC

            ... /me hands Oversight a cookie
            if it gets me nowhere, I'll go there proud; and I'm gonna go there free.

            Comment

            Working...
            X