Advertisement
Infra_HDC

sprintf for mail.ru otvet - 0001

Nov 5th, 2019
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.         int i = 1;
  5.         char* s;
  6.         sprintf(s, "%04d", i);
  7.         printf("s = %s\n",s);
  8.         return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement