the function printf() should have a prototype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dhanu Dhanu
    New Member
    • Feb 2013
    • 1

    the function printf() should have a prototype

    im getting a msg dat............ ..
    here,
    printf("the stack is underflow");
    in dis line it shows the function printf should have a prototype.....
    wt is needed there,,,
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Did you remember to include stdio?

    Comment

    • muthuct8
      New Member
      • Jul 2013
      • 5

      #3
      Code:
      #include<stdio.h>
      void main()
      {
      clrscr();
      printf("the stack is underflow");
      getch();
      }
      Last edited by Rabbit; Jul 20 '13, 05:30 PM. Reason: Please use code tags when posting code.

      Comment

      Working...