how to printf the results on screen without using printf?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnkt045
    New Member
    • Jun 2013
    • 1

    how to printf the results on screen without using printf?

    how to print the result on screen without using printf in C...?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Why would you need to do this?

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Most compilers come with the source code for the C library as part of the install.

      You could look in there and see how printf does it.

      Comment

      • muthuct8
        New Member
        • Jul 2013
        • 5

        #4
        convert to all data into string. and use the puts()

        Comment

        • gaurav19
          New Member
          • Jul 2013
          • 2

          #5
          Its very interesting..
          And i also want to know that. If u find it plz tell me.
          But why would you need to this?

          Comment

          • donbock
            Recognized Expert Top Contributor
            • Mar 2008
            • 2427

            #6
            What exactly are your limitations?
            OK, you can't use printf.
            Can you use other print functions (like putc, puts, etc)?
            Can you use file output functions (like fprintf, fputc, fputs, etc)?

            Comment

            • ijsuhit
              New Member
              • Nov 2013
              • 1

              #7
              #include<stdio. h>
              #include<string .h>
              int main()
              {
              write(1, "Hello World", strlen("Hello World"));
              return 0;
              }

              Comment

              Working...