New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Can I use return_type repeatedly??
4 Answers
+ 2
Means? More times? Example?
+ 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...
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?
0
Jayakrishna🇮🇳 Thanks bro