- 1
What is the output of this code?
#include <stdio.h> #include <stdlib.h> int main() { char area[10][21]; int i; int x = 10, y = 5; sprintf(area[0], "####################"); for(i = 1; i < 9; i++) sprintf(area[i], "# #"); sprintf(area[9], "####################"); area[y][x] = '@'; for(i = 0; i < 10; i++) printf("%s\n", area[i]); return 0; }
1 Answer
+ 4
Put it in the playground and see for yourself.



