Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can main() return structure?

Yesterday in the interview one question was asked to me that can main return struct? I have no idea can any one please tell me is it possible or not,if yes why?

like image 329
Varun Chhangani Avatar asked Dec 01 '25 11:12

Varun Chhangani


1 Answers

main can only return an int value in C (at least for hosted implementations).

like image 198
ouah Avatar answered Dec 02 '25 23:12

ouah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!