What this said its time out | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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 Answers
+ 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