What this said its time out | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 1

What this said its time out

#include <stdio.h> void sp(r) { } int main() { int r; printf ("how many rows do you want"); scanf("%d",r); sp(r); return 0; }

11th Jan 2022, 9:10 AM
Bong Rush Gaming YT
2 Respostas
+ 2
You are coding in C, right? I think you forgot to put šŸ‘‰& for your variable in the scanf line. Your indentation in main() function isn't nice, but that won't stop anything from working. Also, doesn't a void function still need a šŸ‘‰return statement?
11th Jan 2022, 9:48 AM
HungryTradie
HungryTradie - avatar
+ 1
Ok thanks for replying
11th Jan 2022, 9:57 AM
Bong Rush Gaming YT