Can I use return_type repeatedly?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Can I use return_type repeatedly??

1st Oct 2020, 12:01 PM
Siriki Lohit
4 Respostas
+ 2
Means? More times? Example?
1st Oct 2020, 12:03 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
If you mean like this : #include <stdio.h> int main() { printf("hi"); return 0; printf("hello"); return 0; } You can use, but after a return executed, control goes back to called function. none of statements after return get executed...
1st Oct 2020, 12:26 PM
Jayakrishna šŸ‡®šŸ‡³
0
JayakrishnašŸ‡®šŸ‡³ I mean, making a user-defined function, there we use return_type as we know. And using the int main(), We must use return 0; So, return is used multiple times.... So, compiler throws any error?
1st Oct 2020, 12:22 PM
Siriki Lohit
1st Oct 2020, 1:58 PM
Siriki Lohit