kanchan setia
what is the header file used sprintf in c?
By kanchan setia in Windows Forms on Feb 20 2011
  • kanchan setia
    Feb, 2011 23

    hey Jaganathan Bantheswaran,
    i tried stdio header file bt its giving an error "declaration not found".
    can u give me its solution please...

    • 0
  • Jaganathan Bantheswaran
    Feb, 2011 21

    Header file for sprintf is stdio.h.
    #include <stdio.h>

    int main(void){
      char str[80];

      sprintf(str,"%s %d %c""one"2'3');

      printf("%s", str);
    }
    O/P:
    one 2 3

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS