Can I use return_type repeatedly?? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Can I use return_type repeatedly??

1st Oct 2020, 12:01 PM
Siriki Lohit
4 Antworten
+ 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